#midnightcrow
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Can you take a look here using Safari and let me know what you see
https://stripe.com/docs/stripe-js/elements/payment-request-button
Okay so we know you have Apple Pay configured correctly. Now do you have Apple Pay turned on for your account?
Let me check
stripe dashbaord is taking a really long time to load and I am getting an error in the concole
"(index):1 Unrecognized Content-Security-Policy directive 'prefetch-src'."
logged out and back in but still really slow, bare with me and I'll get to the payment settings
ok it says apple pay is turned on
This is my code to setup the elements
const paymentElement = this.elements?.create('payment', {
paymentMethodOrder: ['card', 'apple_pay', 'google_pay'],
fields: {
billingDetails: 'never',
},
wallets: {
applePay: 'auto',
googlePay: 'auto',
},
});
Okay there's nothing much there. Can you share a test front-end?
Actually I see it working in safari on a private window, but the popup closes right away with a 400 error and
"Could not create Apple Pay session. Please make sure you have registered this Stripe account."
Do you have a registered Apple Pay domain on your Stripe account?
can you show me the docs for that? how do I register my apple pay domain