#francisco-checkout-return

1 messages · Page 1 of 1 (latest)

round drumBOT
buoyant birch
#

@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

median bridge
#

Sorry, I refer to this arrow

#

I want to receive that the user clicked it

buoyant birch
#

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 ^

median bridge
#

It´s a single product, the pay method is payment

#

It´s a single product

#

They are tickets for a giveaway

buoyant birch
#

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?

median bridge
#

Oh sorry, I am using checkout I think

#

I am new at that

#

This is my code in express js

buoyant birch
#

Please no pictures

median bridge
#

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

buoyant birch
#

Okay so when you create the Checkout Session, what do you pass to the cancel_url parameter?

#

@median bridge ^

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

buoyant birch
#

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

median bridge
#

Thank you so much

#

It was what I was looking for