• Resolved abonawaff53

    (@snipermilan)


    Hi,

    The apple pay button doesn’t show in Safari. I can only get it to show if I change the store address in Woocommerce settings > general to United States.

    If I set store location to say Egypt, the apple pay button no longer shows.

    Why is this and how to fix it ?

    • This topic was modified 3 years, 3 months ago by abonawaff53.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support B C. a11n

    (@battouly)

    Hi @snipermilan,

    Egypt doesn’t seem to be a supported country for Apple Pay.

    You can see the list of supported countries here:

    https://support.apple.com/en-us/HT207957

    I hope this helps!

    Thread Starter abonawaff53

    (@snipermilan)

    Hi, thanks for responding.

    However, Egypt was a hypothetical example.

    Saudi Arabia is supported by apple pay, and when I change the store location to Saudi Arabia, the apple pay button doesn’t show up.

    When I set the store location to United States for example, the apple pay button shows up for Saudi visitors but throws an error:

    The Payment Request button is not supported in Saudi Arabia because some required fields couldn’t be verified. Please proceed to the checkout page and try again.
    Billing State / County is a required field.
    Shipping State / County is a required field.

    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    Thank you for specifying that Apple Pay throws an error if the location is set to Saudi Arabia!

    The Payment Request button is not supported in Saudi Arabia because some required fields couldn’t be verified. Please proceed to the checkout page and try again.
    Billing State / County is a required field.
    Shipping State / County is a required field.

    I found this error in the Stripe plugin code:

    https://github.com/woocommerce/woocommerce-gateway-stripe/blob/02be3e13e657cf161c56354cfec1583876e494e1/includes/payment-methods/class-wc-stripe-payment-request.php#L1533

    The Payment Request API provides its own validation for the address form. For some countries, it might not provide a state field.

    Can you please specify if the customer has a billing address specified in their Apple Pay wallet? The billing address is required and us if they don’t have a billing address you will see that error message.

    If the address is specified in the wallet/Apple Pay settings but this error is still returned – we might have to run some tests/ask our developers to check if our extension supports Apple Pay in Saudi Arabia and if this needs to be reported as a bug.

    Please also include a copy of your System Status Report (from wp-admin >> WooCommerce >> Status) in your next reply.

    Thank you!

    Thread Starter abonawaff53

    (@snipermilan)

    Hi,

    Thanks for getting back to me.

    So the address is set in my iPhone and I have always used Apple pay with no issues. I have also tried with friends phones with the same issue.

    When I go to edit address on my Apple wallet, there is no “state” field when country is set to Saudi Arabia. See screenshot: https://ibb.co/T01SqR3

    The API is expecting a state, but the state field is empty. This plugin should probably send the “district” as “state” instead or something.

    I can’t share the system status publicly, if there is a way to do it privately, please let me know.

    * The Payment Request API provides its own validation for the address form.
    * For some countries, it might not provide a state field, so we need to return a more descriptive
    * error message, indicating that the Payment Request button is not supported for that country.

    This error seems to indicate that countries that don’t return a state field aren’t supported, but SA is clearly supported and don’t return a state field.

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi @snipermilan,

    Thanks for clarifying your testing setup with a screenshot.

    I can’t share the system status publicly, if there is a way to do it privately, please let me know.

    Please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.
    We may need to troubleshoot this further and possibly file a bug report, so it would be easier if you could reach out to us via a ticket.

    Thread Starter abonawaff53

    (@snipermilan)

    Hi, thanks for getting back to me.

    Will do

    • This reply was modified 3 years, 3 months ago by abonawaff53.
    Thread Starter abonawaff53

    (@snipermilan)

    You can mark this as resolved

    • This reply was modified 3 years, 2 months ago by abonawaff53.

    Hey @snipermilan,

    You can mark this as resolved

    Thanks for letting us know. I’ll mark this thread as resolved and please don’t hesitate to get in touch with us again if you have any further issues.

    Kind regards,

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘apple pay store location’ is closed to new replies.