#sanderfish
1 messages ยท Page 1 of 1 (latest)
I've added the ngrok domain via the Stripe dashboard in both livemode and testmode
In the console I get this error:
You have not registered or verified the domain, so the following payment methods are not enabled in the `paymentRequest`:
- apple_pay
Please follow https://stripe.com/docs/payments/payment-methods/pmd-registration to register and verify the domain.
Here's the link I'm using if that helps: https://3e45795c2888.ngrok.app/c/ddddwew/jeans
I noticed the domains section in the dashboard has changed, and I saw some other threads here in the Discord from people that weren't able to get Apple Pay to show locally. Perhaps something is broken since a recent update?
acct_1DRMcgJ7i86GeQKl
Ok well that's different to the ID of the pk_xxx used on that page. So I guess this is some kind of Connect setup?
i.e. acct_1BlJk4KoWs5tH5ri is the platform
Checking
thanks ๐
Hmm, I don't see 3e45795c2888.ngrok.app registered on the connected account
I can see it in the dashboard on https://dashboard.stripe.com/test/settings/payment_method_domains?enabled=true
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yeah I see it there too actually, not on our internal tooling ๐ค
right, that sounds like an explanation
this setup worked a few weeks ago when using the old dashboard when it was only for Apple Pay domains
I think that is less likely to be a reason why it's working and more that our tooling hasn't been updated yet
fair enough ๐
How did you register the domains on the connected account? Via the Dashboard directly?
Yes
Normally we use the API but because I'm testing locally I used the dashboard instead.
As this domain doesn't really "exist" in our app
Ah as you're doing direct charges the you'll need to do it via the API as described here: https://stripe.com/docs/payments/payment-methods/pmd-registration?platform=api#register-your-domain-while-using-connect
Is that new?
Registering it via the Dashboard only works in non-Connect flows for that account
Hmm our app still uses stripe.applePayDomains.create(...), is that deprecated?
We're in the process of transitioning to a new concept that requires domain registration for all wallets (not just Apple Pay). Part of that is the new payment method domains API, which is the new flow the Dashboard uses yes
The applePayDomains API will still work, but it's recommended you transition
Right okay, that clarifies things. I'll try and add the domain via cURL and see what happens, thanks for your help so far
sure, hope that solves it!
the docs seem incorrect here. it says you can verify the domain before registering it, but you wouldn't have a PAYMENT_METHOD_DOMAIN_ID to make the /validate api call
It's not entirely clear whether validating the domain is required or not, or if the is an initial validation triggered within Stripe when the domain is being registered
Thanks, will flag that
My understanding is the processes are separate, so 2 API calls are required
{
"id": "pmd_1NuWjpJ7i86GeQKlfHzx3Ylw",
"object": "payment_method_domain",
"apple_pay": {
"status": "active"
},
"created": 1695717325,
"domain_name": "3e45795c2888.ngrok.app",
"enabled": true,
"google_pay": {
"status": "active"
},
"link": {
"status": "active"
},
"livemode": false,
"paypal": {
"status": "active"
}
}
this is the response from the POST request to https://api.stripe.com/v1/payment_method_domains
seems like it activates Apple Pay right away
yes and it works on ngrok now!
Great! To confirm, it was registered and verified in that single call to register it?
Yes indeed
Ok, great. I guess that document is poorly phrased then โ I'll have team revisit it
thanks @hasty furnace for all your help! I got everything running and will migrate our code to start using paymentMethodDomains.