WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. SpiritOfTheWinds
    Member
    Posted 2 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...

    Thanks!

  2. nsathees
    Member
    Posted 2 years ago #

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

  3. wlindley
    Member
    Posted 2 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