#pmierzejewski

1 messages · Page 1 of 1 (latest)

fallen dustBOT
vast pivot
#

Hi there!

#

You mean you don't want a URL redirect after the payment is confirmed?

#

What payment method are you using? Only card or more?

final tendon
#

Let's consider Sofort payment as an example.

User picks it, clicks 'pay' in our app and is redirected out of our flow to the payment provider. The redirect happens automatically and is done by Stripe JS code.

I want to open the URL manually in a new window, let them do the payment there.

vast pivot
#

This could be possible with cards payments. But most other payment methods require a full redirect.

final tendon
#

I was advised to use the beta server-side confirmations beta (I have access to it) as apparently then Stripe API returns redirect URL if redirection is needed for confirmation.

Then it should be possible to open popup with the payment flow

https://stripe.com/docs/payments/defer-intent-creation-confirm-server

Build an integration where you render the Payment Element prior to creating a PaymentIntent or SetupIntent, then confirm the Intent from your server.

#

My thinking (happy to be proven wrong!) is that this should not require implementing confirmations server side 😄

I can confirm it client side, I just wanted to be able to control how the payment link is opened

vast pivot
final tendon
#

Right I understand. Thanks for your time!

I was advised by CJ Avilla to ask here in this channel in case of any trouble. Maybe there's someone else who could look into my case?