Hi everyone,
I am using Moodle 3.1.1 which works well. The Paypal sign up process works well too.
I need help to make my Affiliate Program (hosted on my same domain) capture payments and transaction data from the Paypal IPN : I would like to know how to Read/Copy/Convert or Access the "$data->payment_gross" , and "$data->Txn_id" from the Paypal IPN. I tried many approaches but no success. When I substitute $data->payment_gross for $txn_id, and $data->Txn_id for Txn_id in line below it does not work.
This is the line of code the that I need to put into the IPN to activate the Affiliate system:
file_get_contents("http://www.my_affiliate_site.org/affiliates/sale/amount/$mc_gross/trans_id/$txn_id/tracking_code/" . $_COOKIE['jamcom']);
I truly appreciate your help. (because for many Months I have been unsuccessful at trying many different methods. I am not an expert in PHP, I am a beginner)
Thanks,
Cal