#mateo2345-custom-success

1 messages · Page 1 of 1 (latest)

lavish crown
#

hey there what do you mean some other way? What are you looking for?

marble geode
#

so on my success page I am trying to retrieve the checkout session so I can get the costumers name for example and on the document that I just sent it gets the checkout session by the id of the session that is passed into the url, but I dont want to have the checkout session id in my url so I am asking if there is an other way I could get the checkout session id on my success page so I can display the costumers name for example

steady swan
#

That is the only way I am aware of. Is there a reason you do not like having it in your URL?

marble geode
#

I just prefer to have an order id that is created after the checkout in my URL

steady swan
#

What order info would you like? You can look it up through the Session ID

marble geode
#

The email, quantity and name

steady swan
#

Then you can get those as:

#

session.customer.name session.customer.email session.line_items.data[SOME_INDEX].quantity

marble geode
#

Ok thanks, but how can I retrieve it

steady swan
marble geode
#

Ok thanks I am going to try it

steady swan
#

Sounds good, let me know if you have any further questions