#Wurkzen

1 messages · Page 1 of 1 (latest)

weak cosmosBOT
rigid torrent
#

hello! it's up to you, you can use the same / different cancel and success URLs

exotic sun
#

but do i need to create multiple custom checkouts?

rigid torrent
#

what do you mean by different front-ends?

exotic sun
#

ok so checkout can happen two different ways

#
  1. 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
  2. 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

rigid torrent
#

by custom checkout, do you mean you're using Checkout Sessions?

exotic sun
#

yes

rigid torrent
#

alright, can you explain what you mean by multiple custom checkouts?

exotic sun
#

I need to define a separate cancel_url and success_url depending on where they are doing the checkout

rigid torrent
#

then you will need to implement the logic to define the different cancel_url / success_url depending on where they're doing the Checkout

exotic sun
#

how do i do this?

#

I can do this all within one session?

rigid torrent
#

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

exotic sun
#

thats fine, but i need to generate multiple checkout sessions

rigid torrent
#

what's the issue specifically with generating multiple Checkout Sessions?