Closed WeAreELIC closed 3 years ago
Hi @WeAreELIC,
I'm not too familiar with WeChat and AliPay, but I believe a custom Svelte component isn't needed for these because the payment is completed with a redirect, so any button will do.
From reading the docs, the flow works like this:
POST
to server to create the PaymentIntent
(using payment_method_types: ["alipay"]
or payment_method_types: ["wechat_pay"]
and then return the PaymentIntent
's client_secret
client_secret
, call stripe.confirmWechatPayPayment(client_secret)
or stripe.confirmAlipayPayment(client_secret)
. That will redirect the user to their wallet.Stripe's docs:
Let me know if you have questions
I would love to see Alipay and WeChat payment types supported so our China customers can easily pay. Thanks!