One-time payment methods produces the following error: Unsupported credit card type ""

Created on 1 December 2023, over 1 year ago
Updated 9 January 2024, over 1 year ago

Problem/Motivation

After resolving this https://www.drupal.org/project/commerce_stripe/issues/3393193 🐛 one-time payment methods do not display on checkout page. Fixed , we encountered the following error:

From drush ws: Unsupported credit card type "".

From server error logs: 2023-12-01 14:06:56.303561 [NOTICE] [2039054] [T0] [........#APVH_www......pl:443] [STDERR] Stripe Notice: Undefined property of Stripe\PaymentMethod instance: card\n

The order is completed with the message: Unsupported credit card type "".
It is not registered in orders in Commerce.
The payment has status Succeeded in my Stripe account dashboard.

Steps to reproduce

  1. At Stripe account choose Blik and Przelewy24 as active payment methods here /settings/payment_methods?platform...
  2. Set the currency in your shop as PLN (polish zloty/złoty polski)
  3. Configure Stripe Payment Element on Payment gateways page . Set Payment method usage None.
  4. Go to your product page
  5. Add to cart products for at least 20 PLN
  6. Proceed the checkout
  7. Choose BLIK one-time payment method with default 123456 code
  8. Finish the order

After that you will see the notice: Payment failed at the payment server. Please review your information and try again.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Payment Element

Created by

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

Comments & Activities

Production build 0.71.5 2024