• Resolved mnjavier

    (@mnjavier)


    Hi,

    I’ve been trying to set up PayPal Checkout, however, I’m currently having some issues. I’m currently using Sandbox mode to test payments first. My concern is that upon confirming the payment from the PayPal window, instead of completing the transaction and redirected to the Order Received page, the customer is being brought back to the Checkout page where they are supposed to fill out their billing information, only this time, only the customer’s full name and e-mail address is visible and they are non-editable. There are no pending transactions on the PayPal seller account’s side nor is there any pending order on WooCommerce. And the customer’s PayPal balance wasn’t deducted. Also, I’m transacting from the Cart page since if I try to do so from the Checkout page, PayPal displays “Return to Merchant.”

    I don’t think that the problem lies with my PayPal account settings since I’ve tried PayPal Standard and the order went through without any hitch. Also, please do note that I’ve contacted PayPal support and they said:

    “Upon checking, the only step missing to capture the payment is that final API call that PayPal expects from your end. As the final API request is not made from your side, we are unable to capture the payment.

    I would suggest you to check in your plugin code to figure out what is missing to make the final API call to resolve the issue.”

    I hope you can help me with this issue.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi @mnjavier,

    I understand you are having issues where once you’ve logged into your PayPal account to finalize payment, it takes you to a confirmation page to finish payment. You mentioned that it does not allow you to fill the billing information. That would be by default, as PayPal would have that information once customer logged into their account. They would then be redirected back to your site to finish payment:

    https://cld.wthms.co/pQIVx8
    Link to image: https://cld.wthms.co/pQIVx8

    Is the issue that once you do click Place Order, the payment does not go through?

    If that is the case, could you please make sure the debug logging is enabled in the plugin’s settings, make another test purchase and let us know what you see in the debug logs under WooCommerce > Settings > Logs tab > paypal-express log from that date/time stamp of when you tested.

    Thanks!

    Thread Starter mnjavier

    (@mnjavier)

    For the part that the customer isn’t allowed to edit the billing information, this happens after the PayPal modal window disappears after supposedly confirming the transaction.

    As for the log, it is as follows:

    04-03-2019 @ 11:56:33 - WC_Gateway_PPEC_Client::_request: remote request to https://api-3t.sandbox.paypal.com/nvp with params: Array
    (
        [METHOD] => GetPalDetails
        [VERSION] => 120.0
        [USER] => xxxxxxx-facilitator_api1.gmail.com
        [PWD] => FU2WK7J7HT4Y3ZZ2
        [SIGNATURE] => AwSYniqs6lZR8ypum0LUTMfjRW3bANmqjXozE-SMF68-ufjGh5Z37gPc
    )
    
    04-03-2019 @ 11:56:34 - WC_Gateway_PPEC_Client::_process_response: acknowleged response body: Array
    (
        [PAL] => FDWYCNDX93XYJ
        [LOCALE] => en_US
        [TIMESTAMP] => 2019-04-03T11:56:34Z
        [CORRELATIONID] => d0ed9408eb052
        [ACK] => Success
        [VERSION] => 120.0
        [BUILD] => 46457558
    )
    
    04-03-2019 @ 11:59:23 - WC_Gateway_PPEC_Client::_request: remote request to https://api-3t.sandbox.paypal.com/nvp with params: Array
    (
        [LOGOIMG] => https://testsite.co/wp-content/uploads/2019/01/sm-testsite-icon-bk.png
        [HDRIMG] => 
        [PAGESTYLE] => 
        [BRANDNAME] => Test Website
        [RETURNURL] => https://testsite.co/checkout/?woo-paypal-return=true
        [CANCELURL] => https://testsite.co/cart/?woo-paypal-cancel=true
        [ADDROVERRIDE] => 1
        [LANDINGPAGE] => Billing
        [SOLUTIONTYPE] => Sole
        [PAYMENTREQUEST_0_PAYMENTACTION] => sale
        [PAYMENTREQUEST_0_INSURANCEAMT] => 0
        [PAYMENTREQUEST_0_HANDLINGAMT] => 0
        [PAYMENTREQUEST_0_CUSTOM] => 
        [PAYMENTREQUEST_0_INVNUM] => 
        [PAYMENTREQUEST_0_CURRENCYCODE] => PHP
        [PAYMENTREQUEST_0_AMT] => 220
        [PAYMENTREQUEST_0_ITEMAMT] => 120
        [PAYMENTREQUEST_0_SHIPPINGAMT] => 100
        [PAYMENTREQUEST_0_TAXAMT] => 0
        [PAYMENTREQUEST_0_SHIPDISCAMT] => 0
        [NOSHIPPING] => 0
        [EMAIL] => [email protected]
        [PAYMENTREQUEST_0_SHIPTONAME] => Shipment Receiver
        [PAYMENTREQUEST_0_SHIPTOSTREET] => 1 Main St
        [PAYMENTREQUEST_0_SHIPTOSTREET2] => 
        [PAYMENTREQUEST_0_SHIPTOCITY] => Manila
        [PAYMENTREQUEST_0_SHIPTOSTATE] => 00
        [PAYMENTREQUEST_0_SHIPTOZIP] => 1014
        [PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => PH
        [PAYMENTREQUEST_0_SHIPTOPHONENUM] => 4088749463
        [L_PAYMENTREQUEST_0_NAME0] => Test Product
        [L_PAYMENTREQUEST_0_DESC0] => 
        [L_PAYMENTREQUEST_0_QTY0] => 1
        [L_PAYMENTREQUEST_0_AMT0] => 120
        [METHOD] => SetExpressCheckout
        [VERSION] => 120.0
        [USER] => xxxxxxx-facilitator_api1.gmail.com
        [PWD] => FU2WK7J7HT4Y3ZZ2
        [SIGNATURE] => AwSYniqs6lZR8ypum0LUTMfjRW3bANmqjXozE-SMF68-ufjGh5Z37gPc
    )
    
    04-03-2019 @ 11:59:24 - WC_Gateway_PPEC_Client::_process_response: acknowleged response body: Array
    (
        [TOKEN] => EC-7M371319LN792913K
        [TIMESTAMP] => 2019-04-03T11:59:24Z
        [CORRELATIONID] => 85eaa1d93e848
        [ACK] => Success
        [VERSION] => 120.0
        [BUILD] => 52346509
    )
    
    04-03-2019 @ 12:02:39 - WC_Gateway_PPEC_Client::_request: remote request to https://api-3t.sandbox.paypal.com/nvp with params: Array
    (
        [LOGOIMG] => https://testsite.co/wp-content/uploads/2019/01/sm-testsite-icon-bk.png
        [HDRIMG] => 
        [PAGESTYLE] => 
        [BRANDNAME] => Test Website
        [RETURNURL] => https://testsite.co/checkout/?woo-paypal-return=true
        [CANCELURL] => https://testsite.co/cart/?woo-paypal-cancel=true
        [LANDINGPAGE] => Billing
        [SOLUTIONTYPE] => Sole
        [PAYMENTREQUEST_0_PAYMENTACTION] => sale
        [PAYMENTREQUEST_0_INSURANCEAMT] => 0
        [PAYMENTREQUEST_0_HANDLINGAMT] => 0
        [PAYMENTREQUEST_0_CUSTOM] => 
        [PAYMENTREQUEST_0_INVNUM] => 
        [PAYMENTREQUEST_0_CURRENCYCODE] => PHP
        [PAYMENTREQUEST_0_AMT] => 220
        [PAYMENTREQUEST_0_ITEMAMT] => 120
        [PAYMENTREQUEST_0_SHIPPINGAMT] => 100
        [PAYMENTREQUEST_0_TAXAMT] => 0
        [PAYMENTREQUEST_0_SHIPDISCAMT] => 0
        [NOSHIPPING] => 0
        [EMAIL] => [email protected]
        [PAYMENTREQUEST_0_SHIPTONAME] => Shipment Receiver
        [PAYMENTREQUEST_0_SHIPTOSTREET] => 1 Main St
        [PAYMENTREQUEST_0_SHIPTOSTREET2] => 
        [PAYMENTREQUEST_0_SHIPTOCITY] => Manila
        [PAYMENTREQUEST_0_SHIPTOSTATE] => 00
        [PAYMENTREQUEST_0_SHIPTOZIP] => 1014
        [PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => PH
        [PAYMENTREQUEST_0_SHIPTOPHONENUM] => 4088749463
        [L_PAYMENTREQUEST_0_NAME0] => Test Product
        [L_PAYMENTREQUEST_0_DESC0] => 
        [L_PAYMENTREQUEST_0_QTY0] => 1
        [L_PAYMENTREQUEST_0_AMT0] => 120
        [METHOD] => SetExpressCheckout
        [VERSION] => 120.0
        [USER] => xxxxxxx-facilitator_api1.gmail.com
        [PWD] => FU2WK7J7HT4Y3ZZ2
        [SIGNATURE] => AwSYniqs6lZR8ypum0LUTMfjRW3bANmqjXozE-SMF68-ufjGh5Z37gPc
    )
    
    04-03-2019 @ 12:02:40 - WC_Gateway_PPEC_Client::_process_response: acknowleged response body: Array
    (
        [TOKEN] => EC-4RS11037MS722590A
        [TIMESTAMP] => 2019-04-03T12:02:40Z
        [CORRELATIONID] => f500684084100
        [ACK] => Success
        [VERSION] => 120.0
        [BUILD] => 52346509
    )
    
    04-03-2019 @ 12:03:06 - WC_Gateway_PPEC_Client::_request: remote request to https://api-3t.sandbox.paypal.com/nvp with params: Array
    (
        [METHOD] => GetExpressCheckoutDetails
        [VERSION] => 120.0
        [TOKEN] => EC-4RS11037MS722590A
        [USER] => xxxxxxx-facilitator_api1.gmail.com
        [PWD] => FU2WK7J7HT4Y3ZZ2
        [SIGNATURE] => AwSYniqs6lZR8ypum0LUTMfjRW3bANmqjXozE-SMF68-ufjGh5Z37gPc
    )
    
    04-03-2019 @ 12:03:07 - WC_Gateway_PPEC_Client::_process_response: acknowleged response body: Array
    (
        [TOKEN] => EC-4RS11037MS722590A
        [BILLINGAGREEMENTACCEPTEDSTATUS] => 0
        [CHECKOUTSTATUS] => PaymentActionNotInitiated
        [TIMESTAMP] => 2019-04-03T12:03:07Z
        [CORRELATIONID] => 8e308f91814e
        [ACK] => Success
        [VERSION] => 120.0
        [BUILD] => 52346509
        [EMAIL] => [email protected]
        [PAYERID] => 77Q6SXPK48KW8
        [PAYERSTATUS] => verified
        [FIRSTNAME] => Pei
        [LASTNAME] => Parr
        [COUNTRYCODE] => US
        [SHIPTONAME] => Pei Parr
        [SHIPTOSTREET] => 1 Main St
        [SHIPTOCITY] => San Jose
        [SHIPTOSTATE] => CA
        [SHIPTOZIP] => 95131
        [SHIPTOCOUNTRYCODE] => US
        [SHIPTOPHONENUM] => 4088749463
        [SHIPTOCOUNTRYNAME] => United States
        [ADDRESSSTATUS] => Confirmed
        [CURRENCYCODE] => PHP
        [AMT] => 220.00
        [ITEMAMT] => 120.00
        [SHIPPINGAMT] => 100.00
        [HANDLINGAMT] => 0.00
        [TAXAMT] => 0.00
        [NOTIFYURL] => https://testsite.co/?wc-api=WC_Gateway_Paypal
        [INSURANCEAMT] => 0.00
        [SHIPDISCAMT] => 0.00
        [INSURANCEOPTIONOFFERED] => false
        [L_NAME0] => Test Product
        [L_QTY0] => 1
        [L_TAXAMT0] => 0.00
        [L_AMT0] => 120.00
        [PAYMENTREQUEST_0_CURRENCYCODE] => PHP
        [PAYMENTREQUEST_0_AMT] => 220.00
        [PAYMENTREQUEST_0_ITEMAMT] => 120.00
        [PAYMENTREQUEST_0_SHIPPINGAMT] => 100.00
        [PAYMENTREQUEST_0_HANDLINGAMT] => 0.00
        [PAYMENTREQUEST_0_TAXAMT] => 0.00
        [PAYMENTREQUEST_0_NOTIFYURL] => https://testsite.co/?wc-api=WC_Gateway_Paypal
        [PAYMENTREQUEST_0_INSURANCEAMT] => 0.00
        [PAYMENTREQUEST_0_SHIPDISCAMT] => 0.00
        [PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID] => [email protected]
        [PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => false
        [PAYMENTREQUEST_0_SHIPTONAME] => Pei Parr
        [PAYMENTREQUEST_0_SHIPTOSTREET] => 1 Main St
        [PAYMENTREQUEST_0_SHIPTOCITY] => San Jose
        [PAYMENTREQUEST_0_SHIPTOSTATE] => CA
        [PAYMENTREQUEST_0_SHIPTOZIP] => 95131
        [PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => US
        [PAYMENTREQUEST_0_SHIPTOPHONENUM] => 4088749463
        [PAYMENTREQUEST_0_SHIPTOCOUNTRYNAME] => United States
        [PAYMENTREQUEST_0_ADDRESSSTATUS] => Confirmed
        [L_PAYMENTREQUEST_0_NAME0] => Test Product
        [L_PAYMENTREQUEST_0_QTY0] => 1
        [L_PAYMENTREQUEST_0_TAXAMT0] => 0.00
        [L_PAYMENTREQUEST_0_AMT0] => 120.00
        [PAYMENTREQUESTINFO_0_ERRORCODE] => 0
    )
    
    04-03-2019 @ 12:03:10 - WC_Gateway_PPEC_Client::_request: remote request to https://api-3t.sandbox.paypal.com/nvp with params: Array
    (
        [METHOD] => GetExpressCheckoutDetails
        [VERSION] => 120.0
        [TOKEN] => EC-4RS11037MS722590A
        [USER] => xxxxxxx-facilitator_api1.gmail.com
        [PWD] => FU2WK7J7HT4Y3ZZ2
        [SIGNATURE] => AwSYniqs6lZR8ypum0LUTMfjRW3bANmqjXozE-SMF68-ufjGh5Z37gPc
    )
    
    04-03-2019 @ 12:03:10 - WC_Gateway_PPEC_Client::_process_response: acknowleged response body: Array
    (
        [TOKEN] => EC-4RS11037MS722590A
        [BILLINGAGREEMENTACCEPTEDSTATUS] => 0
        [CHECKOUTSTATUS] => PaymentActionNotInitiated
        [TIMESTAMP] => 2019-04-03T12:03:10Z
        [CORRELATIONID] => 9599fcbf83e85
        [ACK] => Success
        [VERSION] => 120.0
        [BUILD] => 52346509
        [EMAIL] => [email protected]
        [PAYERID] => 77Q6SXPK48KW8
        [PAYERSTATUS] => verified
        [FIRSTNAME] => Pei
        [LASTNAME] => Parr
        [COUNTRYCODE] => US
        [SHIPTONAME] => Pei Parr
        [SHIPTOSTREET] => 1 Main St
        [SHIPTOCITY] => San Jose
        [SHIPTOSTATE] => CA
        [SHIPTOZIP] => 95131
        [SHIPTOCOUNTRYCODE] => US
        [SHIPTOPHONENUM] => 4088749463
        [SHIPTOCOUNTRYNAME] => United States
        [ADDRESSSTATUS] => Confirmed
        [CURRENCYCODE] => PHP
        [AMT] => 220.00
        [ITEMAMT] => 120.00
        [SHIPPINGAMT] => 100.00
        [HANDLINGAMT] => 0.00
        [TAXAMT] => 0.00
        [NOTIFYURL] => https://testsite.co/?wc-api=WC_Gateway_Paypal
        [INSURANCEAMT] => 0.00
        [SHIPDISCAMT] => 0.00
        [INSURANCEOPTIONOFFERED] => false
        [L_NAME0] => Test Product
        [L_QTY0] => 1
        [L_TAXAMT0] => 0.00
        [L_AMT0] => 120.00
        [PAYMENTREQUEST_0_CURRENCYCODE] => PHP
        [PAYMENTREQUEST_0_AMT] => 220.00
        [PAYMENTREQUEST_0_ITEMAMT] => 120.00
        [PAYMENTREQUEST_0_SHIPPINGAMT] => 100.00
        [PAYMENTREQUEST_0_HANDLINGAMT] => 0.00
        [PAYMENTREQUEST_0_TAXAMT] => 0.00
        [PAYMENTREQUEST_0_NOTIFYURL] => https://testsite.co/?wc-api=WC_Gateway_Paypal
        [PAYMENTREQUEST_0_INSURANCEAMT] => 0.00
        [PAYMENTREQUEST_0_SHIPDISCAMT] => 0.00
        [PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID] => [email protected]
        [PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => false
        [PAYMENTREQUEST_0_SHIPTONAME] => Pei Parr
        [PAYMENTREQUEST_0_SHIPTOSTREET] => 1 Main St
        [PAYMENTREQUEST_0_SHIPTOCITY] => San Jose
        [PAYMENTREQUEST_0_SHIPTOSTATE] => CA
        [PAYMENTREQUEST_0_SHIPTOZIP] => 95131
        [PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => US
        [PAYMENTREQUEST_0_SHIPTOPHONENUM] => 4088749463
        [PAYMENTREQUEST_0_SHIPTOCOUNTRYNAME] => United States
        [PAYMENTREQUEST_0_ADDRESSSTATUS] => Confirmed
        [L_PAYMENTREQUEST_0_NAME0] => Test Product
        [L_PAYMENTREQUEST_0_QTY0] => 1
        [L_PAYMENTREQUEST_0_TAXAMT0] => 0.00
        [L_PAYMENTREQUEST_0_AMT0] => 120.00
        [PAYMENTREQUESTINFO_0_ERRORCODE] => 0
    )
    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi @mnjavier,

    > For the part that the customer isn’t allowed to edit the billing information, this happens after the PayPal modal window disappears after supposedly confirming the transaction.

    Just to clarify the process, the user clicks the button to pay with PayPal > they can log in to their account so all shipping/billing details are already added without them inputting it > they confirm purchase and are redirected to your site > then they see the email/name no other details as expected > then finalize purchase.

    I’m unclear if at anytime during your process one of these steps is not working as described above. The last confirmation page back on your site does not have editable details by default.

    Could you possibly provide us the URL of your site and a screencast of the steps you’re taking to go through checkout?

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sandbox Mode’ is closed to new replies.