DrByte:
If you enable logging for the module, what's in the PayPal-CURL-xxxxx.log file generated by the transaction attempt? The actual details being transmitted should appear there. What's the amount of the transaction?
Is it just something with a comma as a thousands-separator?
This is the CURL Log
2021-02-23 10:51:16
(live transaction) --> https://payflowpro.paypal.com/transaction
Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 90
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/Payflow Pro
[4] => X-VPS-VIT-Integration-Version: 1.5.6
)
Request Parameters: {SetExpressCheckout}
Array
(
[PAYMENTREQUEST_0_AMT] => 1
[PAYMENTREQUEST_0_ITEMAMT] => 0.83
[PAYMENTREQUEST_0_TAXAMT] => 0.17
[L_PAYMENTREQUEST_0_NUMBER0] => test
[L_PAYMENTREQUEST_0_NAME0] => test [894]
[L_PAYMENTREQUEST_0_QTY0] => 1
[L_PAYMENTREQUEST_0_AMT0] => 0.83
[PAYMENTREQUEST_0_CURRENCYCODE] => GBP
[LOCALECODE] => GB
[GIFTMESSAGEENABLE] => 0
[GIFTRECEIPTEENABLE] => 0
[GIFTWRAPENABLE] => 0
[GIFTWRAPNAME] =>
[GIFTWRAPAMOUNT] => 0
[BUYEREMAILOPTINENABLE] => 0
[CUSTOMERSERVICENUMBER] =>
[BRANDNAME] => *****
[PAYMENTREQUEST_0_PAYMENTACTION] => Sale
[ALLOWNOTE] => 1
[LANDINGPAGE] => Billing
[NOSHIPPING] => 0
[REQCONFIRMSHIPPING] => 1
[EMAIL] => *******
[PAYMENTREQUEST_0_SHIPTOPHONENUM] => 5445454545
[ACTION] => S
[TENDER] => P
[TRXTYPE] => S
[RETURNURL[61]] => https://domain/ipn_main_handler.php?type=ec
[CANCELURL[82]] => https://domain/index.php?main_page=checkout_shipping
[ec_cancel] => 1
[PAGESTYLE] => Primary
[REQUEST_ID] => 1614077475
[USER] =>*******
[PWD] => ****************
[PARTNER] => PayPalUK
[VENDOR] => ******
)
Response:
Array
(
[RESULT] => 4
[RESPMSG] => Invalid amount
[REQUEST_ID] => 1614077475
[CURL_ERRORS] =>
)
SetExpressCheckout, Elapsed: 699ms -- Failed
RESULT=4&RESPMSG=Invalid amount&REQUEST_ID=1614077475&CURL_ERRORS=
The strange thing is if I change the option to PayPal and not Payflow-UK in admin express checkout the problem does not occur. Dr Byte for your info when the client applied to Paypal for pro, PayPal had to give them a special link for the option for Payflow-UK as it did not appear in their account. I spoke with PayPal and they have changed or are going to change something. I have emailed PayPal but still awaiting a reply from them!
Thanks for your help.