#xlex

1 messages · Page 1 of 1 (latest)

pine sageBOT
robust viper
#

Hi, do you mean redirect after the completion? Or something else?

nocturne flare
#

Yes, redirect after completion.

#

In a browser, Stripe redirects back to our site and I can retrieve the session to check that it's paid. I basically want to test retrieving a paid session.

robust viper
nocturne flare
#

Is there a way to make the session complete without opening a browser at all? What I'm hoping to do in my tests is...

session = Stripe::Checkout::Session.create({some_magic_param_to_auto_approve})
Stripe::Checkout::Session.retrieve(session.id)
#

Basically I want to test the entire checkout::session flow on my server backend, without needing manual intervention

robust viper