commercelayer / mfe-checkout

Commerce Layer Hosted Checkout
https://commercelayer.io
MIT License
42 stars 47 forks source link

Avoid saving a double customer payment source with a subscription #412

Closed malessani closed 9 months ago

malessani commented 9 months ago

Description

When a customer is checking out an order with an item with frequency we are going to automatically save the payment details. If then the customer buys another order that includes a subscription and use the customer payment source of the wallet to place the order, the customer payment source shouldn't be saved again.

Steps to Reproduce

  1. Checkout an order with item with frequency and a customer token
  2. Checkout another order with item with frequency and a customer token paying with the customer payment source saved in the wallet from the previous checkout
  3. Checkout another order and find the same customer payment source saved twice.

Expected Result

The expected result was to save the customer payment source only once on the customer wallet.

Actual Results

The actual result was that the customer payment source is saved twice.

malessani commented 9 months ago

:tada: This issue has been resolved in version 4.4.3 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: