#asdfgh-link
1 messages · Page 1 of 1 (latest)
Hi! I'm not sure I understand your question, could you clarify? And by "checkout page" do you mean you are using Checkout Session?
Yes
Maybe I will provide a paste of my code it would be easier
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Here I am creating a new session to Stripe checkout
And I need to provide success and cancel url, because it is required in this Stripe endpoint
But i want to use the Stripe confirmation page in here, is it possible?
What i am doing here, I am creating checkout session and then I am returning back url to checkout page to my client app, and I am redirecting to it instantly
what do you understand "Stripe confirmation page" to mean?
to be clear, the way this works is you create the Session and redirect to its url . That is a payment page where the customer pays. After they pay, we send them to your successURL.
Yes I understand that
I mean, that i want to show this specific page to my user after successful payment
not possible, that page is just for when you're using PaymentLinks
Okay
you can create PaymentLinks through the API if you want to for some reason
but generally if you're using Checkout you're integrating the payment flow into an existing flow on your site and have a page on your site where the customer should go after paying
Yes, but I wanted to render this page as a web view in my Flutter app with button that will allow user to go back to home page of my app
So i assume I can try with generating payment link which will be sent back to my client app
interesting! Generally for mobile I wouldn't recommend using Checkout in a WebView like that, it makes more sense to use our native libraries. We don't have an official Flutter one but https://pub.dev/packages/flutter_stripe is well supported.
I know that package, but there are not provided widget with different payment methods, for me the most important method is P24, because my business is in Poland
So i assume I have two options then, first - create my own widget with checkout and then use this package or use a webview with prebuilt checkout
are you sure it doesn't support P24? Our iOS/Android libraries do in their latest versions so I assume that wrapper Flutter package does as well.
It does support p24, but it only wraps an api call, so I can do something like this
But then i would need to create my own checkout page
And I think that it does not make sense to reinvent the wheel, since stripe provides prebuilt checkout with great ux 😄
What do you think?
The Flutter library uses the PaymentSheet and the PaymentSheet component is our mobile version of Checkout and should support P24.
I've tried to use that, but i didn't see a possibility to use different methods
There is a customFlow parameter in Payment sheet setup
But event if i've set this as true i ended up with this sheet
you don't need the custom flow
it depends on a few things. Let's start with the PaymentIntent pi_xxx you're using, can you share that?
Oh
So i need to setup intent before creating that sheet
That makes sense
So i assume before creating a payment sheet, I need to call my server to create payment intent and then retrieve info about this intent from my client?
yes, the docs should cover all that