Problem/Motivation

This bug causes one-time payment methods (we checked BLIK and Przelewy24) not to display on checkout page.

In configuration for payment in Drupal, here: ../admin/commerce/config/payment-gateways
Payment method usage has only these two options:
- On-session: the customer will always initiate payments in checkout
- Off-session or mixed: the site may process payments on the customer's behalf (e.g., recurring billing)
Neither of them works for BLIK and Przelewy24

Here are the screens from our dashboard at Stripe account /settings/payment_methods/review

stripe 1
stripe 2

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 On-session or Off-session.
  4. Go to your product page
  5. Add to cart products for at least 20 PLN
  6. Proceed the checkout
  7. Just before proceeding the payment (review page), the bug will appear at the Stipe dashboard - /settings/payment_methods/review - choose the latest transaction withe the above settings
CommentFileSizeAuthor
screen-2.png14.91 KBmartyma
screen-1.png13.01 KBmartyma

Comments

martyma created an issue. See original summary.

vmarchuk’s picture

This may be related to this issue https://www.drupal.org/project/commerce_stripe/issues/3392413. Let's see if this goes away after fixing #3392413.

martyma’s picture

We implemented this patch #3392413. We got only partial success.
We have now available one-time payment methods in the cart, the order was proceeded successfully on one of them (Przelewy24). We connected with bank and returned to our shop page where Drupal gave us the message: Payment failed at the payment server. Please review your information and try again.
There is no order created in Commerce. We have no trace of the order, which is the worst for us.

But this transaction has a succeeded status in Stripe dashboard.

But we have logged the following error message:
Location: https://www.....pl/en/checkout/29/review/return?payment_intent=pi_3O0NCN...
Type commerce_payment
message: Unexpected payment intent status requires_action.
Referrer: https://go.przelewy24.pl/

vmarchuk’s picture

@martyma

Yes, the patch from this issue https://www.drupal.org/project/commerce_stripe/issues/3392413 still needs some work. I get the same results as you. I'll get back to it when I have time.

martyma’s picture

Thanks. I am willing to provide further assistance in resolving this issue.
If needed, I can provide access to the error logs from our site. Additionally, I am open to testing any proposed solutions or patches to see if they resolve the issue with the one-time payment methods not displaying on the checkout page. Please let me know how I can assist further.Thank you!😊

martyma’s picture

Status: Active » Fixed

Thanks for your help :) Done

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.