#abhilash_paypal-react-native

1 messages · Page 1 of 1 (latest)

pulsar jasperBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1295333109453029396

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

cerulean prism
#

hi! what version of stripe-react-native are you using?

upbeat sphinx
#

0.24.0

cerulean prism
#

I'd suggest using the latest version instead

upbeat sphinx
#

okay... let me try to udpate to that version and let you know

#

now the type errors are solved and it is accepting the mandate data
const response = await confirmPayment(testClientSecret, { paymentMethodType: 'PayPal', paymentMethodData:{
mandateData: {
customerAcceptance : {
online: {
ipAddress: 'localhost',
userAgent: 'ios'
}
}
}
}});

do I need to pass the exact ipAddress and userAgent for testing? Because I am still receiving the same error

cerulean prism
#

what's the request ID req_xxx of the error you're getting?

upbeat sphinx
#

this is the only info I have related to this confirmation call. From where I can get this request ID?

cerulean prism
#

look at your logs in your Dashboard

upbeat sphinx
#

I don't have access to this atm...

#

do you think anything else will be helpful? subscriptioId or cutomerID?

cerulean prism
#

yes either of those

#

also try removing mandateData in your code, we don't tell you in the docs to pass it. I'd expect the SDK to just pass it for you if it's required. Maybe that helps.

upbeat sphinx
#

customerId is cus_R1opIIXKEd6gjR

cerulean prism
#

also worth upgrading to the very latest verson(you just upgraded to 0.26 but that's still over a year old and we probably changed/fixed things since then)

upbeat sphinx
#

then let me try

pulsar jasperBOT
trim cedar
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

upbeat sphinx
#

I just retried with the latest version 0.38.6 and still getting the same error

#

Do you think if I need to pass any extra param while creating the subscription>

trim cedar
#

Let me do some tests and see if the ReactNative SDK isn't sending the mandata_data when specified...

upbeat sphinx
#

Okay…please let me know

trim cedar
#

I just did a test

#

And the mandate_data is send by the SDK

#

I tested the Reactnative SDK 0.38.6

upbeat sphinx
#

so..any idea what could be wrong with mine?

trim cedar
#

Can you clone this official example

#

Make updates on the confirmPayment and the PaymentIntent creation

#

and try to reproduce the issue?

#

once you managed to reproduce could you please share with me the reproduction steps ?

upbeat sphinx
#

sure...I was actually using the confirmPayment method from useConfirmPayment...But the given example it is using confirmSetupIntentfrom useConfirmSetupIntent. Is that for subscription? I can give try like this first

trim cedar
#

The example, I shared shows how to use both

#

confirmPayment and confirmSetup

pulsar jasperBOT
upbeat sphinx
#

I just reproduced the issue by passing the client secret which I created using the /create-subscription endpoint

weary rune
#

hi! I'm taking over this thread. give me a few minutes to catchup.

#

can you share the PaymentIntent ID (pi_xxx) with this issue?

upbeat sphinx
#

sure

#

pi_3Q9lFiIksnxxMf4u2iMjiGhf_secret_xNXnznKVncLdy3c5hkOEHW3CN

#

created by https://api.stripe.com/v1/subscriptions endpoint

#

let me know if you need more details about the request body

weary rune
#

thanks, I do see the same error message you mentioned. having a look.

#

I'm not sure. I would recommend to contact Stripe support: https://support.stripe.com/contact
make sure to include all relevant information (object IDs, error message, code, reproduction, etc.)

pulsar jasperBOT
#

abhilash_paypal-react-native