Can I send a variable to paypal, and have it post it back to me when payment completes?

Posted by Yegor on Stack Overflow See other posts from Stack Overflow or by Yegor
Published on 2010-05-17T06:45:18Z Indexed on 2010/05/17 6:50 UTC
Read the original article Hit count: 267

Filed under:
|

Ive been using express checkout API to convert people's accounts on my site to premium accounts after paying. The only problem with it is that it doesn't send the user back to the site until they click the button to return, and it updates their permission when that happens. About 40% of the users don't seem to do that.... so their accounts never get credited after payment.

Although paypal does an instant post-back upon the successful payment, I was never able to make it actually update the user's account right away, since I cant get it to send back some sort of informational that would identify the user that just completed the payment. I could only do that when you are sent back to the site, which sends the transaction ID, that I logged with a post-back. It searches for it, and grants permission if it was found int he DB.

Is there a way to submit some sort of a variable to paypal, that it will then post back to me? Something like &user_id=123, which would make it very handly to update the user's permission.

© Stack Overflow or respective owner

Related posts about paypal-api

Related posts about paypal