• Resolved mobi5965

    (@mobi5965)


    Hi I am using WooCommerce PayPal Payments, everything working fine on product page. but on checkout it always gives the error “Please enter address to continue.” even all the address fields are filled correctly. ( we are using other payment options, they are working fine ). I have also checked the AJAX requests in browser it sends all the address fields.

    Plugin should atleast highlight or mention the address field that is missing.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @mobi5965,

    This issue is present in the latest version 2.0 and has been resolved for the upcoming update 2.0.1. To work around it, you could either downgrade to version 1.9.5 or install the 2.0.1 pre-release version from here: https://github.com/woocommerce/woocommerce-paypal-payments/releases
    Alternatively, setting the Default customer location in the General WooCommerce settings to anything other than No location by default should prevent the error.
    I hope this helps!

    Kind regards,
    Niklas

    Thread Starter mobi5965

    (@mobi5965)

    Our store already have set Default customer location to Store country/region, means this is not going to help, but I have downgraded the plugin to 1.9.5 and now its working.

    I have been struggling with this error for a couple weeks. It seems to only affect non-logged in users who have not entered any address data in the fields previously. It is especially consistent if users want to ship to a different address than billing.

    Divi 4.19.2, WP 6.1.1

    Applicable WooCommerce Settings:
    Default customer location set to Shop location/region
    Shipping destination set to Default to customer billing address
    Disabled ability to create account at checkout because of “Password field required error” (this may be a separate issue but I am not certain)

    I first tried rolling back to 1.95 and that did not fix the issues of the "Hosted fields payment is already in progress" error.

    Against my better judgement, I disabled the plugin and installed 2.0.1 from the github link above.

    It will now allow payments to go through, but not until after it directs users to the top of the page, displays the “Hosted fields payment is already in progress” error, then after a moment, the error disappears, and THEN after a few more seconds (long enough for the unsuspecting user to be very confused and assume it isn’t working). All the while, the processing indicator is back at the bottom of the page.

    This feels very much like a workaround and not a solution. What are the chances this is still being improved for the next version?

    • This reply was modified 1 year, 11 months ago by k8peterson.

    Hi, v2.0 is working fine in Chrome but failing in Safari (Desktop), error saying something like “An error occured”.

    I downgraded to 1.9.5, Firefox is working well, but now Safari is displaying this error “MISSING_SHIPPING_ADDRESS The shipping address is required when shipping_preference=SET_PROVIDED_ADDRESS.”

    Same with the 2.0.1 RC1 version, Safari is not working as well as Firefox

    This is debug log:

    DEBUG POST https://api.paypal.com/v2/checkout/orders
    Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"EUR","value":"49.50","breakdown":{"item_total":{"currency_code":"EUR","value":"45.45"},"shipping":{"currency_code":"EUR","value":"0.00"},"tax_total":{"currency_code":"EUR","value":"8.59"},"discount":{"currency_code":"EUR","value":"4.54"}}},"description":"","items":[{"name":"XXXXXXXXXXXXXX","unit_amount":{"currency_code":"EUR","value":"45.45"},"quantity":1,"description":"","sku":"19301302","category":"PHYSICAL_GOODS"}],"payee":{"merchant_id":"XXXXXXXXXXXX"},"shipping":{"name":{"full_name":" "},"address":{"country_code":"ES","address_line_1":"XXXXXXXXXXXXXXXXX","admin_area_1":"A","postal_code":"03540"}}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"SET_PROVIDED_ADDRESS","landing_page":"LOGIN","locale":"es-ES","brand_name":"XXXXXXXX","return_url":"https:\/\/www.xxxxxxxxxx.com\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/www.xxxxxxxxx.com\/xxxxxx-xxxx\/"},"payer":{"email_address":"[email protected]","name":{"given_name":"Xavier","surname":"xxxxxxxxx"},"address":{"country_code":"ES","address_line_1":"AAAAAAAAAAAA","admin_area_1":"A","admin_area_2":"AAAAAAAAA","postal_code":"xxxxx"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"11111111111"}}},"payment_method":{"payee_preferred":"UNRESTRICTED","payer_selected":"PAYPAL"}}
    Response Debug ID: 311a028406404
    Response: Array
    (
        [code] => 422
        [message] => Unprocessable Entity
    )
    
    Response Body: {"name":"UNPROCESSABLE_ENTITY","details":[{"field":"/purchase_units/@reference_id=='default'/shipping/address/admin_area_2","issue":"CITY_REQUIRED","description":"The specified country requires a city (address.admin_area_2)"}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"311a028406404","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-CITY_REQUIRED","rel":"information_link","method":"GET"}]}
    
    2022-12-13T11:52:44+00:00 WARNING Failed to create 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-CITY_REQUIRED
    2022-12-13T11:52:44+00:00 INFO Invalid shipping address for order creation, retrying without it.

    Hope it helps someone.

    • This reply was modified 1 year, 11 months ago by xbaeza.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @mobi5965,

    The error you reported should be resolved now in the latest update 2.0.1 which has been released yesterday. So I will mark this thread resolved for now.

    @k8peterson & @xbaeza The error Hosted fields payment is already in progress is an unrelated to the one reported in this thread and is not expected to be resolved in version 2.0.1.
    A potential workaround that should stop the error from preventing payments can be found here. But I suggest creating a new thread for yourself if any questions remain.
    Thanks!

    Kind regards,
    Niklas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issue with paypal checkout’ is closed to new replies.