[ECE] Apple Pay session cannot be created for Express Checkout Element unless domain is registered with new endpoint #9098
Labels
component: checkout
Issues related to Checkout
focus: checkout payments
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
type: bug
The issue is a confirmed bug.
Describe the bug
When clicking the Apple Pay button with the
_wcpay_feature_stripe_ece
option set to1
, the Apple Pay dialog closes and an error is thrown in the console:This is because we need to register the domain first with this new endpoint: https://api.stripe.com/v1/payment_method_domains (src).
We might want to consider setting
applePay
toauto
instead ofalways
when rendering the button to make sure it's not available in case the domain verification has failed or the button shouldn't be displayed for some reason.To fix this, we can update or add a new endpoint to the server and trigger domain registrations when WooPayments gets updated:
woocommerce-payments/includes/class-wc-payments-apple-pay-registration.php
Line 83 in ff072f5
To Reproduce
The text was updated successfully, but these errors were encountered: