webbhelp Posted January 24, 2011 Share Posted January 24, 2011 Hi! I have been on the paypal website a lot but I can't find what I am looking for. I trying to find some API so I can show Paypal links on every page I generate from mysql. When the user press Paypal button, he/or she will be redirected to paypal.com with a form where a field with the ID, already is filled in. So let's say I press Paypal button ,then a ID, to that page will be sent to paypal and when the user pay the money, a reply from paypal with the ID will come back and confirm the payment. How can I get this to work? I really hope you can help me with this! Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/225538-paypal-pay-and-get-reply-to-webserver/ Share on other sites More sharing options...
coupe-r Posted January 24, 2011 Share Posted January 24, 2011 Hello, You can do a google search for Paypal IPN or you can even search this forum. This is a pretty popular topic. On your site, you will have a button with some hidden fields, one of those will be a "custom" id. When the button is pressed, that ID is sent to Paypal and waits for the user to submit a payment. Upon the user submitting, Paypal contacts your IPN.php page (or whatever you want to call it) and grabs the variables and updates your database. Quote Link to comment https://forums.phpfreaks.com/topic/225538-paypal-pay-and-get-reply-to-webserver/#findComment-1164584 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.