#lee_rw

1 messages · Page 1 of 1 (latest)

finite galleonBOT
upper depot
rare epoch
#

pi_3MOHu2BFlT2ScOFD1Bg0ezuP

#

const {error, paymentIntent} = await stripe.confirmWechatPayPayment(
clientSecret,
{
payment_method_options: {
wechat_pay: {
client: 'mobile_web',
},
},
// Return URL where the customer should be redirected to after the authorization
return_url: window.location.href,
},
);

#

When the client change to "web", I get a QR code image。

shut grotto
#

and then what happens?

#

I had a look and the problem internally is something to do with how your Stripe account is onboarded with Tencent

#

the code itself you're using is fine, it's not a developer/API issue directly

rare epoch
shut grotto
#

no

rare epoch
#

Does it automatically jump to Wechat App?

shut grotto
#

the customer would scan the QR code on their phone, which opens the WeChat app for them to authorise the payment

rare epoch
#

No QR code. I mean use mobile_web to deep linked into WeChat Pay app.

shut grotto
#

that flow requires special permission and is more of a private feature

#

but if you're using that then yes, the idea is it will open the app if it's installed on the device where the customer is visiting your website