Paypal payment_gross is empty

I work with the paypal sandbox.

According to this article, after checking the IPN, I need to check the payment_gross field, but in my case it is empty.

I also have the mc_gross and mc_gross_1 that contain the paid amount, so should I check mc_gross insteard? any thoughts why payment_gross empty?

+4
source share
2 answers

I don’t know why payment_gross empty (or should it be), but I always used mc_gross to check the amount of payment, and I never had any problems. In fact, if the memory serves, I originally copied this from a sample PHP code from Paypal developer docs.

+6
source
  • payment_gross: will be empty for non-USDpayments. This is an obsolete field marked
  • mc_gross: if this amount is negative, it means a refund or cancellation, and any of these payment statuses may be for the full or partial amount of the initial transaction.

Make sense?

+9
source

All Articles