#asdfgh-link

1 messages · Page 1 of 1 (latest)

daring fjord
#

Hi! I'm not sure I understand your question, could you clarify? And by "checkout page" do you mean you are using Checkout Session?

green gate
#

Yes

#

Maybe I will provide a paste of my code it would be easier

#

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

knotty escarp
#

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.

knotty escarp
#

not possible, that page is just for when you're using PaymentLinks

green gate
#

Okay

knotty escarp
#

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

green gate
#

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

knotty escarp
#

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.

green gate
#

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

knotty escarp
#

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.

green gate
#

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?

knotty escarp
#

The Flutter library uses the PaymentSheet and the PaymentSheet component is our mobile version of Checkout and should support P24.

green gate
#

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

knotty escarp
#

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?

green gate
#

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?

knotty escarp
#

yes, the docs should cover all that