#MilkJuice

1 messages · Page 1 of 1 (latest)

vague fossilBOT
surreal bone
placid rune
#

i got sent an email by another stripe engineer when i was trying to implement it, let me link the document real quick one second

#

the part below for IOS

#

number 5

surreal bone
#

Gotcha, thank you for that. Did the link to the Expo docs for setting up your URL scheme for your app help. Or was there something there that is causing problems?

placid rune
#

I think i have set that up though im honestly not sure if i did the right thing, its been very vague, i have made a link that when you go it, it prompts you to open the app

#

though i assume i have to connect that to a thank you checkout page

#

but where do i add that return url in the stripe part of things? cause ideal still doesnt show up

surreal bone
#

The last snippet in that section is showing that the returnURL is provided while initializing the Payment Sheet. I also noticed you had a live key in your code snippet, have you been trying to test this with testmode keys as you build?

placid rune
#

yea ive been testing with the test keys

#

this is just a snippet from the build we currently have that doesnt show ideal

#

do i add the url here?

surreal bone
#

I don't believe so, I believe it's added here:

  ...
  returnURL: 'your-app://stripe-redirect',
  ...
});```
placid rune
#

so do i need to add that as a new function?

#

below the paymentintent creation?

surreal bone
#

Are you using the Payment Sheet/Mobile Payment Element in your application?

placid rune
#

im using the mobile payment element

#

for the tutorial i followed, they didnt add a payment sheet

#

Stripe's React Native SDK provides a convenient API for allow developers to accept payments natively in their applications in a performant way.

In this video, Charles Cruzan and Cecil Phillip discuss some of the capabilities of the SDK and show us how to get started. They go over topics such as getting setup, invoking the paymentsheet, adding d...

â–¶ Play video
#

it was this one

surreal bone
#

Payment Sheet and Mobile Payment Element are the same thing

placid rune
#

im slightly confused on where to add the initpaymentsheet then

surreal bone
#

Is initPaymentSheet in your code?

#

It should already be there if you're using the Payment Sheet

placid rune
#

no its not

#

wait i will show you what i have in the react native side of things

#

ohh i see it now, i was confused i thought it was meant to be server side

surreal bone
placid rune
#

i do have the payment sheet on the app yes

#

sorry about that, im new to implementing stripe here

surreal bone
#

Gotcha, so returnURL will be declared as one of the parameters there.

surreal bone
placid rune
#

yea its hard to work with, specially with expo, its all these obscure bugs with very minimal documentation or online presence

#

i added the return url, let me check if it works

#

perfect it works

#

it redirects to the home page now, ill make it redirect to a payment confirmation page

#

thank you so much

surreal bone
#

Sweet, glad to hear that's working!