Error country Ecuador – [UNPROCESSABLE_ENTITY] #error-SHIPPING_ADDRESS_INVALID
-
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":"[email protected]","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":"[email protected]","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§ion=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§ion=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 )
Viewing 6 replies - 1 through 6 (of 6 total)
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.