Jump to content

Developing a shopping cart


resting

Recommended Posts

i've decided to use $_SESSION to store the user's selection. Only after the confirmation of payment is received, will the database be updated.

 

Next question, will the $_SESSION data still be available when the user makes payment on another site (paypal) and comes back?

 

Or better yet, will the $_SESSION data still be available even when the user doesn't come back? Meaning upon receiving confirmation from paypal, I will update all $_SESSION into database?

Link to comment
https://forums.phpfreaks.com/topic/177196-developing-a-shopping-cart/
Share on other sites

no i plan to use the paypal button generator. yes i still can redirect user back to my home page.

 

but they could stop this process either purposely or accidentally. and this means if they don't come back, i can't update my inventory and orders.

 

maybe i shouldn't use $_SESSION to store the items? maybe I could store them in a pending_payment_confirmation table? then when paypal some how sends the Instant Payment Notification to me, a script will run to update the database?

 

how does that sound?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.