Jump to content

Callback variable from paypal?


liamloveslearning

Recommended Posts

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

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

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'];

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.