tjoneslow
Member
- Affected version
- XF 2.2
We've set up PayPal to accept payments for forum upgrades according to the documentation. But one user attempt to upgrade continues to post an error log with the error message: Error: Invalid cost amount
I did a search for similar errors and found this as a fixed bug against 2.0.5;
I did a search for similar errors and found this as a fixed bug against 2.0.5;
Fixed - PayPal payment provider returning "Invalid cost amount" when it shouldn't.
I've been receiving the "Invalid cost amount" error message for some select payment receipts with a taxation rate set. I modified the relevant line of PayPal.php to read $state->logMessage = 'Invalid cost amount: ' . (round(floatval($state->costAmount), 2) - round(floatval($state->taxAmount)...
xenforo.com
array(42) {
["mc_gross"] => string(5) "57.10"
["protection_eligibility"] => string(8) "Eligible"
["address_status"] => string(9) "confirmed"
["payer_id"] => string(13) ""
["address_street"] => string(15) ""
["payment_date"] => string(25) ""
["payment_status"] => string(9) "Completed"
["charset"] => string(12) "windows-1252"
["address_zip"] => string(10) ""
["first_name"] => string(3) ""
["mc_fee"] => string(4) "2.48"
["address_country_code"] => string(2) "US"
["address_name"] => string(10) ""
["notify_version"] => string(3) "3.9"
["custom"] => string(32) ""
["payer_status"] => string(8) "verified"
["business"] => string(19) ""
["address_country"] => string(13) ""
["address_city"] => string(6) ""
["quantity"] => string(1) "1"
["verify_sign"] => string(56) ""
["payer_email"] => string(28) ""
["txn_id"] => string(17) ""
["payment_type"] => string(7) "instant"
["last_name"] => string(6) ""
["address_state"] => string(2) ""
["receiver_email"] => string(19) ""
["payment_fee"] => string(4) "2.48"
["shipping_discount"] => string(4) "0.00"
["insurance_amount"] => string(4) "0.00"
["receiver_id"] => string(13) ""
["txn_type"] => string(10) "web_accept"
["item_name"] => string(56) "Account upgrade: Moot Subscription - Count (ShadowHawke)"
["discount"] => string(4) "0.00"
["mc_currency"] => string(3) "USD"
["item_number"] => string(0) ""
["residence_country"] => string(2) "US"
["shipping_method"] => string(11) "Air Service"
["transaction_subject"] => string(0) ""
["payment_gross"] => string(5) "57.10"
["shipping"] => string(4) "7.10"
["ipn_track_id"] => string(13) ""
}