Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For a Paypal IPN what's the difference between auth_amount and mc_gross?

I'm having a hard time finding this out from the documentation. I have some code I've inherited which needs to get he payment amount from a Paypal IPN transaction. It's expecting the variable "auth_amount" from a Paypal IPN but is not getting passed this field. It looks to me from the Paypal docs as though I should be using the field "mc_gross" which is labelled as "Full amount of the customer's payment, before transaction fee is subtracted.".

The Paypal IPN docs describe the "auth_amount" field as "Authorization amount", which doesn't mean much to me.

I'm going to change it to use mc_gross, but I just want to check first that I'm not missing something silly?

Thanks!

like image 903
Ludo Avatar asked Apr 08 '11 09:04

Ludo


People also ask

What is IPN number in PayPal?

Instant Payment Notification (IPN) is a message service that automatically notifies merchants of events related to PayPal transactions. Merchants can use it to automate back-office and administrative functions, including automatically fulfilling orders and providing customers with order status.

How often does PayPal IPN retry?

An IPN will be resent for up to four days, with a maximum of 15 retries. This resend algorithm can lead to situations in which PayPal re-sends an IPN message at the same time you are sending back the original message.

What is IPN code?

The International Performer Number (IPN) is a unique universal identifier allocated to every single PPL-registered performer as well as performers registered with other collective management organisations (CMOs). This ID number is used to identify a performer in exchanges with other CMOs around the world.

What is IPN listener?

IPN listener request-response flowYour listener listens for the HTTPS POST IPN messages that PayPal sends with each event. After receiving the IPN message from PayPal, your listener returns an empty HTTP 200 response to PayPal. Otherwise, PayPal resends the IPN message.


1 Answers

Check this out: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables

mc_gross Full amount of the customer's payment, before transaction fee is subtracted. Equivalent to payment_gross for USD payments. If this amount is negative, it signifies a refund or reversal, and either of those payment statuses can be for the full or partial amount of the original transaction.

like image 52
Craig White Avatar answered Oct 03 '22 06:10

Craig White