Sylius: [RFC] How should we handle thank you page by default

Created on 20 Sep 2016  路  6Comments  路  Source: Sylius/Sylius

There is two approaches which we figure out:

The first one is to store order id in session after checkout complete step and then unset it after thank you action.

The second one is to add generated token to order and then combination of order id and token value will give you access to this page.

What do you think is the best way to handle this, any feedback is highly appreciated.

RFC

Most helpful comment

IMHO the second approach sounds more flexible :tada:

All 6 comments

IMHO the second approach sounds more flexible :tada:

Agreed, 馃憤 for second approach

Second approach makes sense, but I am totally confused by the thank you page right now. I am currently upgrading previous Sylius website to what is on master, and the thank you page is something you see before you pay, which lets you switch your payment method?

@inssein Yep, agreed the default thank you page is very strange. It lets you change payment methods even when there is only 1 payment method to choose from.
I vote for the second approach too. If we unset a session value when we are redirected back to the thank you page after payment it technically may not work.

Thx for your feedback 馃憤 . 馃拑

I guess it can be closed since #6104 was merged :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

inssein picture inssein  路  3Comments

stefandoorn picture stefandoorn  路  3Comments

javiereguiluz picture javiereguiluz  路  3Comments

loic425 picture loic425  路  3Comments

ping86 picture ping86  路  3Comments