Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Error message about payment method on checkout page

Error message about payment method on checkout page

Greg_P
Shopify Partner
41 4 35

Hello Shopify!

 

I've noticed an issue on the checkout page. Using my extension we can change items in the cart, after this action there is a possibility that some payment methods are no longer available and there is an error message on the checkout page:

The requested payment method is not available.

It occurs when we have used some payment method, and after action fired by the extension this particular method disappears. New method is now available on the list and set by default which is perfectly fine, but error message looks like something went wrong. Good example is upsell from OTP to subscription:
1. Customer has OTP product in the cart.
2. Customer chooses non credit card payment method on the checkout page.
3. Then using extension cart item is converted into Subscription.
4. Non credit card payment method disappears, cc is only visible now and is selected (correct behavior), but error message is shown to the user.


Can you, please look into this issue?

Screenshot 2023-12-29 at 12.50.09.png

 

 

 

Shopify Developer
If I have solved your issue, please mark my post as accepted solution 🙂
Replies 3 (3)

Liam
Community Manager
3108 344 910

Hi Greg,

 

Is this happening with all orders/ products or only if there is a subscription as part of the order?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Greg_P
Shopify Partner
41 4 35

Dear @Liam, subscription is just an example, easiest example, I guess. If we don't have subscription in the cart and e.g. want to use COD and then, using extension, cart item is converted into subscription then COD is not available as payment method and automatically credit card is selected which causes this error.

Shopify Developer
If I have solved your issue, please mark my post as accepted solution 🙂
Greg_P
Shopify Partner
41 4 35

Any news @Liam ?

Shopify Developer
If I have solved your issue, please mark my post as accepted solution 🙂