• Resolved jokubas2000k

    (@jokubas2000k)


    Hi,

    I am trying to test Apple Pay. I have enabled test mode and am trying to pay for the order with Apple Pay but it says “Payment Not Completed” every time. What could be the reason?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi!

    Thanks for reaching out!

    Sometimes the default error messages can be less than helpful, in order to get more details about why this may be failing for you, can you please enable logging in Stripe, then testing again?

    You can enable logging from WP-admin > WooCommerce > Settings > Payments > Stripe and then check the box to enable logging.

    Once that’s turned on, go try and complete a payment again, then check your Stripe logs, which can be found in WP-admin > WooCommerce > Status > Logs and select the Stripe logs from the dropdown on the right.

    The logs should provide more information. If you’re unsure of how to interpret the logs feel free to copy and paste them here so that we can take a look!

    Thread Starter jokubas2000k

    (@jokubas2000k)

    Hi @crazywickedawesome,

    I enabled logging and tried to complete a payment with Apple Pay but the Stripe logs do not appear in the dropdown at WP-admin > WooCommerce > Status > Logs.

    Here’s the list of all the logs in the dropdown: https://ibb.co/wpwZpHv

    Thread Starter jokubas2000k

    (@jokubas2000k)

    Hi @crazywickedawesome,

    I found the issue.

    It turns out that because my billing address on Apple Pay does not have a State/County and State/County is a required field at WooCommerce checkout, the payments could not be completed.

    I removed the State/County field altogether and the payment went through fine.

    I noticed that the billing information requested by Apple Pay depends on the country. Some countries require to fill in more billing fields than the others. My country does not have states or counties, but it’s a required field at WooCommerce checkout, therefore the payment could not be completed.

    United Arab Emirates does not have postcodes so WooCommerce checkout hides the Postcode/ZIP field if United Arab Emirates is selected, so Apple Pay would probably work.

    So it looks like the solution would be to hide the State/County field if a country without states or counties is selected. But this requires custom code.

    Hey @jokubas2000k!

    Thanks for the update I’m glad to hear you’ve found the culprit!

    While you’re generally correct that editing the checkout requires custom code, we’ve got a guide that covers a number of different methods you can edit the checkout fields including using a plugin, instead of custom code: https://woocommerce.com/posts/customize-checkout-fields-woocommerce/

    I hope that helps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to test Apple Pay’ is closed to new replies.