#yogesh-Sdk
1 messages · Page 1 of 1 (latest)
sure
Can you show me the <StripeProvider> code?
Don't worry about it!
<StripeProvider
publishableKey={
"key"
}
{ there is some ui } /</ StripeProvider>
let payment = await initPaymentSheet({
customerId: "id",
customerEphemeralKeySecret:
"key",
paymentIntentClientSecret:
"key",
});
console.log("payment", payment);
this is what i am doing to initialize payment
it's not showing any error in ios but when i try to this const { error, paymentOption } = await presentPaymentSheet();
i get this {"code": "Failed", "declineCode": null, "localizedMessage": null, "message": null, "stripeErrorCode": null, "type": null}
my react native version "react-native": "0.61.3",
OK, so the error happens when you call initPaymentSheet ?
actually when i am using <StripeProvider
publishableKey={
"key "
}
></StripeProvider> this error comes in android
and what stripe-react-native version are you using?
can you update to 0.4.0 ?
yes sure give me max 3-5 min
take your time
still that same error for android
typeerror null is not an object (evaluating '_native stripe sdk.default.initialise')
@jade plinth
Ok
Can you remove the curly braces around the publishableKey, change it to something like
publishableKey="key" >```
Hmm I can't reproduce the problem
🥲
and any idea about this {"code": "Failed", "declineCode": null, "localizedMessage": null, "message": null, "stripeErrorCode": null, "type": null}
@jade plinth
this is for iOS
Oh, so you don't have problem in iOS? I mean the StripeProvider doesn't give you error?
that's interesting, I'd suggest to rebuild the android app
now let's see the initpaymentsheet error, can you send me the paymentintent ID?
tried building more , cleaning gradle and deleting node modules
ok
you mean the key ?
@jade plinth
pi_3Kfe7ASIE4jcZ9Lx1g65ELXv_secret_fXKskbQYpE55OnW7flLCja2sX
OK, what' the iOS sdk version that you are using?