#Wurkzen
1 messages · Page 1 of 1 (latest)
hello! it's up to you, you can use the same / different cancel and success URLs
but do i need to create multiple custom checkouts?
what do you mean by different front-ends?
ok so checkout can happen two different ways
- Through our admin portal that our businesses employees use, the success_url takes them back to the admin portal and cancel_url back to the edit order page
- Through our customers business websites, the success_url takes them to a success page and the cancel_url takes them back to the customers business website homepage
basically when you are managing an order
you can take payment "By Card" or "By Email"
by card means you are taking the payment on the admin portal, by email means you send the custom checkout as an link an email to the end customer and then they pay from their computer
by custom checkout, do you mean you're using Checkout Sessions?
yes
alright, can you explain what you mean by multiple custom checkouts?
I need to define a separate cancel_url and success_url depending on where they are doing the checkout
then you will need to implement the logic to define the different cancel_url / success_url depending on where they're doing the Checkout
that's not really something that I can advise on in detail, you would be able to identify what the Checkout Session is for e.g. if the user is on the admin page then you should be able to identify that from your code and generate the URL accordingly. It's similar for if you're generating the Checkout Session for email
thats fine, but i need to generate multiple checkout sessions
what's the issue specifically with generating multiple Checkout Sessions?