#yogesh-Sdk

1 messages · Page 1 of 1 (latest)

jade plinth
#

Hi there, can you send me the full error message?

elfin python
#

sure

jade plinth
#

Can you show me the <StripeProvider> code?

elfin python
#

ok got it i don’t know much about using discord sorry

#

ok i will show

jade plinth
#

Don't worry about it!

elfin python
#

<StripeProvider
publishableKey={
"key"
}

{ there is some ui } /</ StripeProvider>

#

let payment = await initPaymentSheet({
customerId: "id",
customerEphemeralKeySecret:
"key",
paymentIntentClientSecret:
"key",

});
console.log("payment", payment);
jade plinth
#

Please remove the secret and key in your code

#

Discord is a public place

elfin python
#

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",

jade plinth
#

OK, so the error happens when you call initPaymentSheet ?

elfin python
#

actually when i am using <StripeProvider
publishableKey={
"key "
}
></StripeProvider> this error comes in android

jade plinth
#

and what stripe-react-native version are you using?

elfin python
#

"@stripe/stripe-react-native": "0.2.3",

#

@jade plinth

jade plinth
#

can you update to 0.4.0 ?

elfin python
#

yes sure give me max 3-5 min

jade plinth
#

take your time

elfin python
#

still that same error for android

#

typeerror null is not an object (evaluating '_native stripe sdk.default.initialise')

#

@jade plinth

jade plinth
#

Ok

#

Can you remove the curly braces around the publishableKey, change it to something like

        publishableKey="key" >```
elfin python
#

yes , but still the same error

#

@jade plinth

jade plinth
#

Hmm I can't reproduce the problem

elfin python
#

🥲

#

and any idea about this {"code": "Failed", "declineCode": null, "localizedMessage": null, "message": null, "stripeErrorCode": null, "type": null}

#

@jade plinth

#

this is for iOS

jade plinth
#

Oh, so you don't have problem in iOS? I mean the StripeProvider doesn't give you error?

elfin python
#

yes

#

no problem in ios

jade plinth
#

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?

elfin python
#

tried building more , cleaning gradle and deleting node modules

elfin python
#

you mean the key ?

#

@jade plinth

jade plinth
#

the payment intent ID

#

which start with pi_

elfin python
#

pi_3Kfe7ASIE4jcZ9Lx1g65ELXv_secret_fXKskbQYpE55OnW7flLCja2sX

jade plinth
#

OK, what' the iOS sdk version that you are using?

elfin python
#

for iOS i have solved the issue for now , there was some issue from the backend side regarding the keys customerId, customerEphemeralKeySecret, paymentIntentClientSecret

#

when i have tested with other creds it's working