#sanderfish

1 messages ยท Page 1 of 1 (latest)

wary emberBOT
split elk
#

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.
#

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?

hasty furnace
#

Can you share your account ID?

#

Nevermind, got it

split elk
#

acct_1DRMcgJ7i86GeQKl

hasty furnace
#

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

split elk
#

Yes, we're using Stripe Connect

#

Correct

hasty furnace
#

Checking

split elk
#

thanks ๐Ÿ™‚

hasty furnace
#

Hmm, I don't see 3e45795c2888.ngrok.app registered on the connected account

split elk
hasty furnace
#

Yeah I see it there too actually, not on our internal tooling ๐Ÿค”

split elk
#

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

hasty furnace
#

I think that is less likely to be a reason why it's working and more that our tooling hasn't been updated yet

split elk
#

fair enough ๐Ÿ™‚

hasty furnace
#

How did you register the domains on the connected account? Via the Dashboard directly?

split elk
#

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

hasty furnace
split elk
#

Is that new?

hasty furnace
#

Registering it via the Dashboard only works in non-Connect flows for that account

split elk
#

Hmm our app still uses stripe.applePayDomains.create(...), is that deprecated?

hasty furnace
#

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

split elk
#

Right okay, that clarifies things. I'll try and add the domain via cURL and see what happens, thanks for your help so far

hasty furnace
#

sure, hope that solves it!

split elk
#

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

hasty furnace
split elk
#
{
    "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!

hasty furnace
#

Great! To confirm, it was registered and verified in that single call to register it?

split elk
#

Yes indeed

hasty furnace
#

Ok, great. I guess that document is poorly phrased then โ€“ I'll have team revisit it

split elk
#

thanks @hasty furnace for all your help! I got everything running and will migrate our code to start using paymentMethodDomains.