#jry-Wechat
1 messages ยท Page 1 of 1 (latest)
Hi Jack
I just want to confirm that WeChat pay is good to be implemented on Stripe React Native
I've followed the document provided yesterday and updated to @stripe/stripe-react-native 0.14.0
But I was given this error .
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
jry-Wechat
It displays three
req_dQ94dkIrHOqfxe
req_LpfR137ECRJBe5
req_GA4IriXXIVnUMj
Here it is from latest to oldest
Can you show me the code you wrote to confirm the wechat paymentIntent?
const { error, paymentIntent } = await confirmPayment(res.client_secret, { paymentMethodType: 'WeChatPay', });
You didn't pass an appId ?
const { error, paymentIntent } = await confirmPayment(clientSecret, {
paymentMethodType: 'WeChatPay',
paymentMethodData: {
billingDetails,
appId: 'wx65907d6307c3827d',
},
});
I'm not quite sure where to retrieve the appId
It's your wechat merchant account ID
Is that something we have to register with WeChat independently?
This is a merchant ID issued by Wechat Pay. Do you have a merchant account with Wechat?
no I didn't know we have to register a merchant ID ๐ฆ
The appId is required if the client is android or iOS. You might need to check with WechatPay and ask how to register a merchant account.
ok thanks I'll check it out
No problem ๐
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options-wechat_pay-app_id this is the API reference for the wechat appId
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.