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


After making a payment, I am using Express Checkout API to convert accounts of people's accounts to premium accounts on my site I am The only problem with this is that unless they click on the button to come back, the user is not sent back to the site, and this happens when their permission is updated. Approximately 40% of the users do not like it .... so they never get credit after payment of their account.

Although PayPal returns an immediate return after successful payment, I was not really able to update the user account immediately, because I can not send it back to send some information The user who has just completed the payment I could only do so when you are sent back to the site, which sends the transaction ID, which I logged in with a post-back. It searches for it, and grants it if it is found DT BIT.

Is there any way to deposit a variable in any type of peeparel, then it will send me back? Some more & amp; User_id = 123, which will make the user's permission very easy to update.

Yes, if you send item_number , it will include when This post is back to you. When I start the user payment process, I record a unique ID in the database and it is included in sending it to PayPal. When it comes to IPN, that unique ID matches the records in the database, which gives me all the information.

Edit Please leave your comment:

I hope the above link is an example of a code somewhere on the site, but basically in my case I I am using a form I post. Used to specify the IPN stuff ( CMD , business to enter your business ID, item_name ) within that form There are various hidden fields, a good description in the PayPal UI, described above for the item_number item number, etc., etc.). When the IPN returns to your IPN address, different areas (such as payment_status & nbsp; & mdash; important! & Nbsp; mdash and item_number you Is fed in when posting them).


Comments