stripe-archive / stripe-payments-demo

Sample store accepting universal payments on the web with Stripe Elements, Payment Request, Apple Pay, Google Pay, Microsoft Pay, and the PaymentIntents API. 💳🌍✨
https://stripe-payments-demo.appspot.com
MIT License
1.47k stars 546 forks source link

Wechat Payment failure immediately #113

Closed S8Cloud closed 4 years ago

S8Cloud commented 4 years ago

When choosing Wechat pay, this failure message popped up right after the QR code generated.

Oops, payment failed.
It looks like your order could not be paid at this time. Please try again or select a different payment option.
S8Cloud commented 4 years ago

Trying to trace the reason, after Wechat QR code generated, the API payment_intents/${paymentIntent}/status immediately returns status requires_payment_method thus result in the paymentIntent to end.

Is there any solution?

thorsten-stripe commented 4 years ago

@S8Cloud thanks for flagging this! I accidentally had defined requires_payment_method as an endstatus for the polling function. Will be redeployed in a minute :)

thorsten-stripe commented 4 years ago

https://stripe-payments-demo.appspot.com/ has been redeployed and works as expected now on my end. Can you verify if it works for you? You might have to force refresh the page in case your browser caches JS. Thanks again for flagging!