Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.