PayPal Express Checkout no Payer ID
Hi Support,
I have been working through a PayPal Express checkout error.
I have tested in the PayPal sandbox without a problem, but when I changed it to live it seems to be having a few errors as listed below:
1. PayPal support has said the Payer Id is not been submitted see the code and response from PayPal below
<-- Start Code Snippet -->
DoExpressCheckoutPaymentRequest
token "XXXXXXXXXXXXXXXXXX"
payerid "" ???
returnfmfdetails "0"
method "DoExpressCheckoutPayment"
version "63.0"
user "paypal_api1.XXXX.some.user.id"
buttonsource "WebAssist.eCartPHP.Pro.ECO"
paymentrequest_0_currencycode "AUD"
paymentrequest_0_amt "6.84"
paymentrequest_0_itemamt "1.9"
paymentrequest_0_shippingamt "4.32"
paymentrequest_0_handlingamt ""
paymentrequest_0_taxamt "0.62"
paymentrequest_0_custom ""
paymentrequest_0_desc "A product description"
paymentrequest_0_invnum "23075"
paymentrequest_0_buttonsource "WebAssist.eCartPHP.Pro.ECO"
<-- Start Code Snippet -->
How our checkout works:
1. User presses Checkout >
2. User Register or Login >
3. Lands on Payment Page (inserted to DB) >
4. User chooses PayPal payment type >
5. Redirect to PayPal > User Logs into PayPal (Authenticates)
6. User comes back lands on the PayPal Process Page (eCart PayPal Process Transaction)
7. User get success page or error page.
I have this code as mentioned below, just before the process transaction code on the process page but I'm wondering if this is where the problem is but the documentation does not state where this should go during a PayPal checkout?
After the user login into the PayPal and comes back to process the transaction does it come back with a PayerID in the URL as the your code suggests below?
<?php
$WA_PP_ECO_GetResult = WA_PP_ECO_SOAPObject();
if ((isset($_GET["token"]) && isset($_GET["PayerID"])) || (isset($_SESSION["PayPal_ECO_Token"]) && $_SESSION["PayPal_ECO_Token"] != "")) {
$WA_PP_ECO_GetResult = WA_PP_ECO_Get_Post("paypal_api1.XXXXXX", "XXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXX", true);
}
?>
Then the process PayPal transaction code goes here
Problem 2.
2. The repeated product description of items is not showing even after the user has logged in to PayPal? it just shows the sale description?
Thanks for you time in advance, its always a pleasure dealing with your company Webassist.