#alhusamia-checkout
1 messages · Page 1 of 1 (latest)
alhusamia-checkout
Hi! Would you have a public URL I can access to reproduce the issue?
Sorry I dont get it .. what is the URL that you need ... cus i am using it in react-native
Oh I didn't know you were using React Native. So you want to display a Checkout Session in your mobile application?
yes using the webview cus i tried to use the sdk for the react native and its not working with react-native 0.63 version ... and while i am trying to update the packages it making conflect .... So the only way that i have is using it with webview
Hi @keen comet you can just open up the session.url in your webview without using the stripe.redirectToCheckout JS API.
how can i get the session.url while i have the session.id that i got it from the back-end
You can retrieve (https://stripe.com/docs/api/checkout/sessions/retrieve) the checkout session object in your backend and pass the session.url to frontend.
Ok ... after i make the success how can i control the screen .. cus it will go to your success screen i think
You can specify a success_url (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-success_url) to redirect your customer upon checkout completion.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
@thorny tide I checked the Response (https://stripe.com/docs/api/checkout/sessions/retrieve) here .... but i dont found the session.url that you mentioned before
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This API will return a session object, and you can get the url from this object. see https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.