Hey guys,
I have been though the forum plenty of times looking over many different IPN issues.
I can also see Derek has spent many many hours helping people fix their IPN problems so thanks from everyone with this issue.
So heres my situation which you have all heard before 😊
I have setup the debug environment:
Now the payment is logged in the users sandbox account and the business account in PayPal It is not logged in EE.
I then added the following to my mod.scm file
ob_start();
print_r($_POST);
$msg = ob_get_contents();
ob_end_clean();
if ( ! class_exists('EEmail'))
{
require PATH_CORE.'core.email'.EXT;
}
$email = new EEmail;
$email->initialize();
$email->from($PREFS->ini('webmaster_email'));
$email->to('info@leevigraham.com');
$email->subject('Incoming IPN');
$email->message($msg);
$email->Send();
which didn’t send any email… obviously a concern.
ok so thats the summary of the sandbox/debug setup.
I have also tried to get this working live (pre sandbox days :red: )
Users where reporting that once a purchase had been made they where returned to a 404 error page with a url like:
http://leevigraham.com/index.php?mc_gross=39.95&address_status=unconfirmed&item_number1=4&payer_id=KRTXWQ8BVNY82&tax=0.00 ...
This to me looks like the Paypal IPN response.
However when a payment was made and the email code was in place it returned:
Array
(
[mc_gross] => 39.95
[address_status] => unconfirmed
[item_number1] => 4
[payer_id] => KRTXWQ8BVNY82
[tax] => 0.00
[payment_date] => 17:25:33 Feb 28, 2008 PST
[payment_status] => Completed
[charset] => windows-1252
[address_zip] => 51766
[mc_shipping] => 0.00
[mc_handling] => 0.00
[mc_fee] => 1.66
[address_country_code] => DE
[notify_version] => 2.4
[custom] => 29
[payer_status] => verified
[business] => info@leevigraham.com
[address_country] => Germany
[num_cart_items] => 1
[mc_handling1] => 0.00
[verify_sign] => ApBHX6qbpxJW-Ll3oP22LSbo0WeuA9OT9WuC19q6PTlnoFopnf0FXHD3
[mc_shipping1] => 0.00
[tax1] => 0.00
[txn_id] => 7W2759653S2541049
[payment_type] => instant
[address_state] =>
[item_name1] => LG Polls v1
[receiver_email] => sales@leevigraham.com
[payment_fee] => 1.66
[quantity1] => 1
[receiver_id] => N2RTADHJMDUCU
[txn_type] => cart
[mc_gross_1] => 39.95
[mc_currency] => USD
[residence_country] => DE
[payment_gross] => 39.95
)
Some personal details have been removed.
Can someone please help me figure this bad boy out?
Cheers Leevi
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.