Update a post after bein redirected from Paypal (3 posts)

  1. SpiritOfTheWinds
    Posted 4 years ago #

    I am using a dynamic version of Paypal's Buy Now button. After a payment is done, I redirect to a confirmation page but I'd also need to change the availability of the item to 0 (false) since all items are unique (there are only one per item). How can it be done? The item will keep showing as "SOLD" due to the value indicating it is not available anymore.

    I have no idea on how I could do this...


  2. nsathees
    Posted 4 years ago #

    If you are using IPN then handle this in the notificaton URL page

  3. wlindley
    Posted 4 years ago #

    You might also look into using WordPress's xmlrpc features for the PayPal IPN.

    However, consider: What happens if two or more people add the item to their PayPal cart, before any of them checks out? Then PayPal will let all of them purchase the single item... What will you do in that case?

Topic Closed

This topic has been closed to new replies.

About this Topic