#francisco-checkout-return
1 messages · Page 1 of 1 (latest)
@median bridge can you clarify what product(s) you are using? When you say
when the user goes back with the arrow from stripe page.
what do you mean exactly? Which arrow page? On which product/page/url?
@median bridge ^ just making sure you see this message so that I can help you
This is a picture in another language. Can I ask you to explain more explicitly what product you are using? I assume it's our Checkout payment page from that picture but it'd help to get a definitive answer
francisco-checkout-return
@median bridge ^
It´s a single product, the pay method is payment
It´s a single product
They are tickets for a giveaway
I'm sorry I'm not really clear. I'm not talking about what you are selling yourself (your own products). I am talking about which Stripe APIs and products you are using. We have many that fit different purposes. To help you further, I have to know exactly how you integrated Stripe since it changes the answer a lot.
Are you using Checkout? The Customer Portal? Our PricingTable or PaymentLinks no-code solutions? Something else?
Oh sorry, I am using checkout I think
I am new at that
This is my code in express js
Please no pictures
Okay so you are using Checkout and so your code is calling the Create Checkout Session API https://stripe.com/docs/api/checkout/sessions/create and then redirecting the end customer to the Checkout URL?
Yes it is
I receive when the payment is completed or failed
But I want to receive when he go back without try the payment
Okay so when you create the Checkout Session, what do you pass to the cancel_url parameter?
@median bridge ^
I'm sorry I think I have the solution
I have to put the endpoint on cancel_url and send the sale id
Or information that I need
yes! Basically there's no "Event" sent to your webhook endpoint in this case. The customer clicks that "back arrow" and they go back to your website at the URL you passed in the cancel_url parameter. There you can handle this "cart abandonment" if that makes sense
you can do something like this: cancel_url: 'http://example.com/cancel_url?session_id={CHECKOUT_SESSION_ID} that way we will put the cs_test_123 in the URL