• Resolved curillo

    (@curillo)


    Hello, I have the following problem when trying to buy with the country of Ecuador, it gives me the following error: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-SHIPPING_ADDRESS_INVALID , with other countries it works correctly. The shipping address entered is correct, it is the one that is usually used in Ecuador, even if you write it in another format, the error message will still appear.
    Attached the error log:

    2022-06-03T11:15:35-05:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders
    Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"3.36","breakdown":{"item_total":{"currency_code":"USD","value":"3.00"},"shipping":{"currency_code":"USD","value":"0.00"},"tax_total":{"currency_code":"USD","value":"0.36"}}},"description":"","items":[{"name":"Acianthera saurocephala - Jar","unit_amount":{"currency_code":"USD","value":"3.00"},"quantity":1,"description":"","sku":"PIS1571-3","category":"PHYSICAL_GOODS","tax":{"currency_code":"USD","value":"0.36"}}],"payee":{"merchant_id":"XRNP99Y2BDSNY"},"shipping":{"name":{"full_name":"John Doe"},"address":{"country_code":"EC","address_line_1":"Calle Patoquinoas y Calle sin Nombre 141","admin_area_1":"EC-A","admin_area_2":"Cuenca","postal_code":"36523"}}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"SET_PROVIDED_ADDRESS","landing_page":"LOGIN","locale":"en-US","brand_name":"Ecuagenera","return_url":"http:\/\/52.200.94.116\/?wc-ajax=ppc-return-url","cancel_url":"http:\/\/52.200.94.116\/checkout\/"},"payer":{"name":{"given_name":"John","surname":"Doe"},"email_address":"sb-mjbfc16421420@personal.example.com","address":{"country_code":"EC","address_line_1":"Calle Patoquinoas y Calle sin Nombre 141","admin_area_1":"EC-A","admin_area_2":"Cuenca","postal_code":"36523"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"14049410208"}}},"payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED","payer_selected":"PAYPAL"}}
    Response Debug ID: 9e7327451d038
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
    
    2022-06-03T11:15:36-05:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders
    Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"3.36","breakdown":{"item_total":{"currency_code":"USD","value":"3.00"},"shipping":{"currency_code":"USD","value":"0.00"},"tax_total":{"currency_code":"USD","value":"0.36"}}},"description":"","items":[{"name":"Acianthera saurocephala - Jar","unit_amount":{"currency_code":"USD","value":"3.00"},"quantity":1,"description":"","sku":"PIS1571-3","category":"PHYSICAL_GOODS","tax":{"currency_code":"USD","value":"0.36"}}],"payee":{"merchant_id":"XRNP99Y2BDSNY"},"shipping":{"name":{"full_name":"John Doe"},"address":{"country_code":"EC","address_line_1":"Calle Patoquinoas y Calle sin Nombre 141","admin_area_1":"EC-A","admin_area_2":"Cuenca","postal_code":"36523"}}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"SET_PROVIDED_ADDRESS","landing_page":"LOGIN","locale":"en-US","brand_name":"Ecuagenera","return_url":"http:\/\/52.200.94.116\/?wc-ajax=ppc-return-url","cancel_url":"http:\/\/52.200.94.116\/checkout\/"},"payer":{"name":{"given_name":"John","surname":"Doe"},"email_address":"sb-mjbfc16421420@personal.example.com","address":{"country_code":"EC","address_line_1":"Calle Patoquinoas y Calle sin Nombre 141","admin_area_1":"EC-A","admin_area_2":"Cuenca","postal_code":"36523"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"14049410208"}}},"payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED","payer_selected":"PAYPAL"}}
    Response Debug ID: ad5dd353e1315
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
    
    2022-06-03T11:15:46-05:00 DEBUG  https://api.sandbox.paypal.com/v2/checkout/orders/73S66700WM736991F
    Response Debug ID: 54e7bd1b2d363
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    2022-06-03T11:15:47-05:00 DEBUG PATCH https://api.sandbox.paypal.com/v2/checkout/orders/73S66700WM736991F
    Request Body: [{"op":"replace","value":{"reference_id":"default","amount":{"currency_code":"USD","value":"3.36","breakdown":{"item_total":{"currency_code":"USD","value":"3.00"},"shipping":{"currency_code":"USD","value":"0.00"},"tax_total":{"currency_code":"USD","value":"0.36"}}},"description":"","items":[{"name":"Acianthera saurocephala - Jar","unit_amount":{"currency_code":"USD","value":"3.00"},"quantity":1,"description":"","sku":"PIS1571-3","category":"PHYSICAL_GOODS","tax":{"currency_code":"USD","value":"0.36"}}],"payee":{"merchant_id":"XRNP99Y2BDSNY"},"shipping":{"name":{"full_name":"John Doe"},"address":{"country_code":"EC","address_line_1":"Calle Patoquinoas y Calle sin Nombre 141","admin_area_1":"EC-A","admin_area_2":"Cuenca","postal_code":"36523"}},"custom_id":"15188","invoice_id":"befaea-15188"},"path":"\/purchase_units\/@reference_id=='default'"}]
    Response Debug ID: b07bec5256ebf
    Response: Array
    (
        [code] => 204
        [message] => No Content
    )
    
    2022-06-03T11:15:48-05:00 DEBUG  https://api.sandbox.paypal.com/v2/checkout/orders/73S66700WM736991F
    Response Debug ID: 7aa6323d72147
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    2022-06-03T11:15:49-05:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders/73S66700WM736991F/capture
    Response Debug ID: 332a916cc4eaa
    Response: Array
    (
        [code] => 422
        [message] => Unprocessable Entity
    )
    
    Response Body: {"name":"UNPROCESSABLE_ENTITY","details":[{"issue":"SHIPPING_ADDRESS_INVALID","description":"Provided shipping address is invalid."}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"332a916cc4eaa","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-SHIPPING_ADDRESS_INVALID","rel":"information_link","method":"GET"}]}
    
    2022-06-03T11:15:49-05:00 WARNING Failed to capture order. PayPal API response: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-SHIPPING_ADDRESS_INVALID
    2022-06-03T11:16:13-05:00 DEBUG POST https://connect.woocommerce.com/ppc/v2/customer/partner-referrals
    Request Body: {"partner_config_override":{"partner_logo_url":"https:\/\/connect.woocommerce.com\/images\/woocommerce_logo.png","return_url":"http:\/\/52.200.94.116\/wp-admin\/admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway","return_url_description":"Return to your shop.","show_add_credit_card":true},"products":["PPCP"],"legal_consents":[{"type":"SHARE_DATA_CONSENT","granted":true}],"operations":[{"operation":"API_INTEGRATION","api_integration_preference":{"rest_api_integration":{"integration_method":"PAYPAL","integration_type":"FIRST_PARTY","first_party_details":{"features":["PAYMENT","FUTURE_PAYMENT","REFUND","ADVANCED_TRANSACTIONS_SEARCH","VAULT"],"seller_nonce":"a1233wtergfsdt4365tzrshgfbaewa36AGa1233wtergfsdt4365tzrshgfbaewa36AG"}}}}]}
    Response Debug ID: 7af0bfed535c6
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
    
    2022-06-03T11:16:14-05:00 DEBUG POST https://connect.woocommerce.com/ppc/v2/customer/partner-referrals
    Request Body: {"partner_config_override":{"partner_logo_url":"https:\/\/connect.woocommerce.com\/images\/woocommerce_logo.png","return_url":"http:\/\/52.200.94.116\/wp-admin\/admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway","return_url_description":"Return to your shop.","show_add_credit_card":true},"products":["EXPRESS_CHECKOUT"],"legal_consents":[{"type":"SHARE_DATA_CONSENT","granted":true}],"operations":[{"operation":"API_INTEGRATION","api_integration_preference":{"rest_api_integration":{"integration_method":"PAYPAL","integration_type":"FIRST_PARTY","first_party_details":{"features":["PAYMENT","FUTURE_PAYMENT","REFUND","ADVANCED_TRANSACTIONS_SEARCH","VAULT"],"seller_nonce":"a1233wtergfsdt4365tzrshgfbaewa36AGa1233wtergfsdt4365tzrshgfbaewa36AG"}}}}]}
    Response Debug ID: 3f81cf2befbb0
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
    
    • This topic was modified 1 year, 11 months ago by curillo.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @curillo

    thank you for reaching out to us, we are here to help.
    We did not yet know about this issue but are able to reproduce it on our testing environment, so we will open a bug for it and link it to this thread, so you will be updated when we have a fix available for it.

    We found out so far, that this issue only occurs when there are shipping costs involved, so at least we have “a lead” to further investigate. I hope we have a fix for you soon.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @curillo

    just a small correction, it seems this occurs when the shipping address details in the PayPal account are set to Ecuador. We need some time to have our team review this, but this might be an issue with the PayPal customer account. Hopefully we will have more information for you soon.

    Kind regards,
    Joost

    Thread Starter curillo

    (@curillo)

    Hello, Thank you for your prompt response.
    If indeed our client has the store registered in Ecuador and makes shipments to almost the whole world.
    We will be waiting for an available solution,
    Thanks.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @curillo

    our developer has reviewed this case and can’t find any cause by our plugin for causing this error. When we check the PayPal popup, we also see that Ecuador is not available there, so we expect this to be caused by a PayPal server/configuration issue and have contacted them to investigate this.
    We hope to have a response from them soon. We will let you know.

    Kind regards,
    Joost

    Thread Starter curillo

    (@curillo)

    Hello, Thank you for your prompt response.
    We will be waiting for an available solution, to be able to make the necessary adjustments.
    Thanks.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @curillo

    I had some discussions about this behavior with PayPal and they informed me the following:
    this is expected behaviour when both merchant and buyer are based in the US, but the passed shipping address is from Ecuador. The validation for cross-border shipping addresses failed as expected.

    I am not sure that this means that no purchases can be done from Ecuador when the shop is outside of Ecuador, but it seems this applies only to this country. There is no option to generate a sandbox account for Ecuador, so I don’t think there is any possibility for this.

    PayPal does not seem to have any option for this situation, so I don’t think there is much we can do for this. I will mark this thread as resolved.

    Kind regards,
    Joost

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error country Ecuador – [UNPROCESSABLE_ENTITY] #error-SHIPPING_ADDRESS_INVALID’ is closed to new replies.