#jry-Wechat

1 messages ยท Page 1 of 1 (latest)

terse bough
#

Hi there, how can I help?

eternal sequoia
#

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 .

terse bough
#

jry-Wechat

eternal sequoia
#

It displays three

#

req_dQ94dkIrHOqfxe

#

req_LpfR137ECRJBe5

#

req_GA4IriXXIVnUMj

#

Here it is from latest to oldest

terse bough
#

Can you show me the code you wrote to confirm the wechat paymentIntent?

eternal sequoia
#

const { error, paymentIntent } = await confirmPayment(res.client_secret, { paymentMethodType: 'WeChatPay', });

terse bough
#

You didn't pass an appId ?

#
const { error, paymentIntent } = await confirmPayment(clientSecret, {
      paymentMethodType: 'WeChatPay',
      paymentMethodData: {
        billingDetails,
        appId: 'wx65907d6307c3827d',
      },
    });
eternal sequoia
#

I'm not quite sure where to retrieve the appId

terse bough
#

It's your wechat merchant account ID

eternal sequoia
#

Is that something we have to register with WeChat independently?

terse bough
#

This is a merchant ID issued by Wechat Pay. Do you have a merchant account with Wechat?

eternal sequoia
#

no I didn't know we have to register a merchant ID ๐Ÿ˜ฆ

terse bough
#

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.

eternal sequoia
#

ok thanks I'll check it out

terse bough
#

No problem ๐Ÿ™‚