Stored Credit Card Issues

Created on 23 February 2023, almost 2 years ago
Updated 26 September 2023, about 1 year ago

Problem/Motivation

We have a client who has store using Commerce Square to accept payments. At some point over the past few months (no hard date on exactly when), stored credits stopped working as a payment method. Signed-in users who have stored credit cards have that option pre-selected during checkout but when trying to complete checkout, they get this error: "We encountered an unexpected error processing your payment method. Please try again later." Using a new card that has not been stored works fine.

In addition to the checkout issue, when trying to add a payment method on that tab of a user's profile, the stored card is not saved. There is a success method that says the card has been saved but it does not show in the payment methods list and is not available for use in checkout.

We did attempt to upgrade the module version to the stable 1.7x version and that did not solve the issue. We are using the dev version for some other custom code we have tied to commerce. We also tested using other payment gateways and they work fine. This issue is likely related https://www.drupal.org/project/commerce_square/issues/3283435 β†’ but we do not see any PHP errors in any of the site logs nor in JS errors in console.

Steps to reproduce

1. Go to a user's payment methods page and attempt to add a credit card as a payment method. You will receive a success message but the card will not appear in the table of payment methods on that page.
2. For a user that has a stored payment method saved, attempt to checkout any item using any order type or checkout flow and attempt to complete checkout using a stored card. You will receive a message that there was an error with your payment method.
3. Add another payment gateway and enable it.
4. Re-test steps 1 & 2 and both will work.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ec-adam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ec-adam
  • πŸ‡ΊπŸ‡ΈUnited States hockey2112

    I am experiencing this same issue. Any fix? Additionally, I do not see any options at checkout that would allow the customer to choose to save that payment method to their account.

Production build 0.71.5 2024