rbur0425's avatar

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 -

  1. Order page with address and credit card details
  2. Upsell Page with additional product offer
  3. 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.

0 likes
0 replies

Please or to participate in this conversation.