• Resolved hendrik11

    (@hendrik11)


    Hey there,

    I installed the Paypal Plus plugin on my woocommerce shop, followed all the steps to set it up correctly with rest api and when I test it for a product, choose, say, visa or any of the paypal plus payment methods, I get the error: error processing checkout. please try again.

    I looked in the data log, I keep on finding the following error:
    [02-02-2019 06:40:27] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : ERROR: Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LRK6H6Y3C946854WF850503Y. {“name”:”VALIDATION_ERROR”,”details”:[{“field”:”purchase_units[0].item_list.shipping_address.country_code”,”issue”:”Country code must be 2-character ISO 3166-1 value (upper case)”},{“field”:”purchase_units[0].item_list.shipping_address.country_code”,”issue”:”Must not be blank”}],”message”:”Invalid request – see details”,”information_link”:”https://developer.paypal.com/docs/api/payments/#errors”,”debug_id”:”335df91ad68d”}

    Could you maybe specify where the problem can be?
    Thanks very much.

    If you need the whole log, then I can hand it in of course
    Hendrik

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @hendrik11

    it seems as you entered address cannot be validated. Please enter an address so PayPal is able to verify it.

    Thread Starter hendrik11

    (@hendrik11)

    Hello Andreas,

    thanks for getting back. I wondered about this as well.
    My address settings are complete within Woocommerce. Is that where I have to look or where do I have to do that?

    I tried it out and it did not work (changing parts of my address)

    Thanks again.
    Hendrik

    PS: I just looked up this error message and found a similar customer with this code. He had turned off the country at the checkout page…just like me. I removed that via php so that my customers dont have to fill out things that are unnnecessary. Might this be the problem? Which “woocommerce field do I need to display because I dont want to add all fields and have an unnecesarily inflated checkout form.

    • This reply was modified 7 years, 4 months ago by hendrik11.
    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @hendrik11

    no, I meant the address what the client entered at the frontend in checkout. This address must be possible to validate by PayPal. Maybe you can test it we a real address within Germany

    Thread Starter hendrik11

    (@hendrik11)

    Hello Andreas,

    PS: I just looked up this error message and found a similar customer with this code. He had turned off the country at the checkout page…just like me. I removed that via php so that my customers dont have to fill out things that are unnnecessary. Might this be the problem? Which “woocommerce field do I need to display because I dont want to add all fields and have an unnecesarily inflated checkout form.

    purchase_units[0].item_list.shipping_address.country_code

    Is this the billing country code or the shipping address code? Seems to be shipping address code.

    Thanks again for your quick help.
    Hendrik

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @hendrik11,

    unfortunately, all these fields are necessary so PayPal can valid the address. If this isn’t possible PayPal Plus will not accept the payment and the user will not be redirected to the PayPal Plus website.

    Thread Starter hendrik11

    (@hendrik11)

    Hello Andreas,

    okay, so I will add these fields to my checkout form. Would you please provide me with the name of fields that are absolutely necessary. Since I am selling a digital product that would just require an e-mailaddress, I would like to limit the required fields to a minimum.

    Could you as the plugin provider maybe tell which fields need to be communicated and which are optional? Again, as few as possible, as many as necessary.

    Thanks for the great support!
    Henddrik

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hallo @hendrik11

    PayPal requires all address fields like name, street, city, zip code, country.

    Thread Starter hendrik11

    (@hendrik11)

    Hello Andreas,

    I tried reaching out to the customer service in the US because I am still looking for a directo count of what fields are absolutely necessary.

    You specified the fields like name, street etc….do you know what fields exactly required?
    I dont want to test it by try and error. Somebody must know which fields paypal plus draws from the checkout page…

    Thanks again
    Hendrik

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @hendrik11

    ALL address fields are required! But you said you tried to reach the US customer service. Are you located in US or Germany because PayPal Plus works for Germany only. Client outside Germany can use PayPal and Credit Card only.

    Thread Starter hendrik11

    (@hendrik11)

    Thanks Andreas,

    tried it out. It works!

    So the reason why Paypal plus did not work was the fact that I removed required fields, but in contrast to the error message where just the country code was missing, I need to have all address fields except for company and phone (and the optional second street line (the rest really is obligatory).

    I tried out adding one by one but it only worked like this.

    Well, it is a bit unsatisfied since customers will need to fill in more info (→less conversion), but maybe filling in info makes the payment process look more trustworthy…I dont know.

    In any case, issue resolved. I just wanted to leave a last comment for people who have this problem in the future.

    Thread Starter hendrik11

    (@hendrik11)

    Follow-Up:

    Hello Andreas,
    I just received the following message from the paypal technical customer support and they write the following concerning the required fields. As it seems the plugin is requesting certain information, not Paypal plus.

    Hi Hendrik,

    In this case I see that you are sending a PATCH request to add some details to the transaction. If you don’t pass the shipping address object then it should be fine but in all your logs where the error is returned you are passing it and then if you pass it the country code is compulsory.

    Try not to pass the shipping address object and it will be fine. Example of a PATCH request body:

    [
    {
    “op”: “replace”,
    “path”: “/transactions/0/amount”,
    “value”: {
    “currency”: “USD”,
    “details”: {
    “shipping”: “3”,
    “subtotal”: “4”,
    “tax”: “1”
    },
    “total”: “8”
    }
    },
    {
    “op”: “add”,
    “path”: “/transactions/0/custom”,
    “value”: “TEST”
    },
    {
    “op”: “add”,
    “path”: “/transactions/0/invoice_number”,
    “value”: “2244D3FF89”
    }
    ]

    So my question is whether there is a way to modify the plugin or the info that is being requested in order to eliminate the fields.

    Thanks for your help!!
    Hendrik

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Error processing checkout. Please try again.’ is closed to new replies.