Feb 16, 2020
0
Level 13
Laravel Cashier - Amazon like 1 Click Upsell
I have a client who is looking for 1 click upsell capability like Amazon has 1 click Buy Now.
This is for an ecommerce store not like Cashier is used for user model.
The flow the client wants is as follows -
- Order page with address and credit card details
- Upsell Page with additional product offer
- Thank You/Receipt Page
How would you approach this? Ideally, the client would like to keep it as one charge.
Would you store the token/paymentmethod.id in the session and then capture charge between upsell and thank you page? I feel like this information is too sensitive to keep in the session.
Could you create a uuid for the visitor and store relevant information in the database? But what if the cookies/session is cleared the uuid would no longer be linked.
Please or to participate in this conversation.