liamloveslearning Posted April 28, 2010 Share Posted April 28, 2010 Hi everyone, I have a webpage with a few items for sale, Users can visit and click buy now which takes them to the paypal payment page without them having an account. Once the payment is made I need to post their email address back to my handler function to then trigger a mail() function. Is this possible? Link to comment https://forums.phpfreaks.com/topic/200090-callback-variable-from-paypal/ Share on other sites More sharing options...
mrMarcus Posted April 28, 2010 Share Posted April 28, 2010 yes, look into IPN (Instant Payment Notification) .. lot's of info on the Paypal developer website. Link to comment https://forums.phpfreaks.com/topic/200090-callback-variable-from-paypal/#findComment-1050203 Share on other sites More sharing options...
liamloveslearning Posted April 28, 2010 Author Share Posted April 28, 2010 Thanks Marcus, Ive done that and have ... $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; Paypal however isnt passing anything through my url, How can I force them to do it Link to comment https://forums.phpfreaks.com/topic/200090-callback-variable-from-paypal/#findComment-1050208 Share on other sites More sharing options...
mrMarcus Posted April 28, 2010 Share Posted April 28, 2010 that's not how IPN works. IPN is a script that is executed upon a paypal transaction. certain aspects of that script can be designated to execute upon a successful transaction, and others for a declined transaction. the 'custom' field can be accessed by your IPN script, thus making it a prime candidate for passing user information to your IPN script, which is then setup to email that user whatever it is you need to email them. $custom = $_POST['custom']; Link to comment https://forums.phpfreaks.com/topic/200090-callback-variable-from-paypal/#findComment-1050221 Share on other sites More sharing options...
liamloveslearning Posted April 29, 2010 Author Share Posted April 29, 2010 So is it possible to pass the buyers email via the custom variable? Thanks again fro your help Link to comment https://forums.phpfreaks.com/topic/200090-callback-variable-from-paypal/#findComment-1050345 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.