Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal payment_gross is empty

I am working with with paypal sandbox.

According with that article after IPN verification i need to check payment_gross field but in my case it is empty.

Also i have fields mc_gross and mc_gross_1 which is contains paid amount so should i check mc_gross insteard? any thoughts why payment_gross is empty?

like image 602
jason Avatar asked Sep 25 '11 03:09

jason


2 Answers

  1. payment_gross: Will be empty for non-USDpayments. This is a legacy fieldreplaced by
  2. mc_gross: 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.

Make sense?

like image 55
huawei chen Avatar answered Oct 08 '22 09:10

huawei chen


Not sure why payment_gross is empty (or whether or not it should be) but I've always used mc_gross to check the payment amount and I've never had any problems. In fact if memory serves I originally copied that from a PHP code sample from the Paypal developer documents.

like image 35
Clive Avatar answered Oct 08 '22 10:10

Clive