#danielncr

1 messages · Page 1 of 1 (latest)

mental oysterBOT
toxic condor
#

When you say "list the domains" what do you mean?

west juniper
#

stripe apple_pay_domains list --stripe-account=

#

with the account as the connected account number

#

This is the result: {
"object": "list",
"data": [],
"has_more": false,
"url": "/v1/apple_pay/domains"
}%

#

Tried the same thing (I think) with Python code and got the same (empty) result.

toxic condor
west juniper
#

(because I don't see anything new there after executing the command)

#

I feel like i'm doing something wrong with platform vs. connected accounts.

#

I'm looking in the dashboard for the platform account. I changed the filter on that page to include "incoming connect requests" and "outgoing connect requests" as well as "this account"

toxic condor
#

What's the account ID you're using?

west juniper
#

This is the connected account: acct_1LssLnChx0YlZiSS

#

(i also added --live to the CLI invocation: same empty result)

#

So stripe apple_pay_domains list --stripe-account=acct_1LssLnChx0YlZiSS --live

toxic condor
#

It may sound too simple, but have you made sure that account actually has an Apple Pay domain registered successfully?

west juniper
#

not too simple! happy to try to check

#

that page doesn't show anything

#

assuming that's accurate then I guess my question becomes: why isn't the code to create the apple pay domain working?

#

This is the code I'm running:

#
                    api_key=settings.STRIPE_LIVE_SECRET_KEY,
                    domain_name=f"{self.slug}.{settings.DOMAIN_APEX}",
                    stripe_account=self.payment_provider.stripe_account_id,
                )
#

so the api key is for the platform account and the stripe account is the connected one we've been discussing

#

the code appears to work w/o error

toxic condor
#

Are you seeing request logs in the Stripe dashboard for requests made by that code?

west juniper
#

no

toxic condor
#

On neither the platform account, nor the connect account?

#

If it's not erroring, then there should be request logs for one of those accounts

west juniper
#

I didn't check the connected account, just the platform, but I can check that too

#

i don't see them in either place

#

I'm so confused

toxic condor
#

Hmmm, okay. Let me repro on my account and make sure that I'm 100% certain. Will circle back in a minute

#

Huh, okay. Apologies. I guess that doesn't generate a log for some reason (making note to give feedback to the product team about that later)

#

That being said, I'm also not seeing the domain being added to my test account immediately, which tells me that the domain must be verified before it will show up in the dashboard and be usable

#

Do you know the full URL where the domain registration file is hosted?

west juniper
#

I tried just typing out and running the code manually and I think it worked this time. Right now I'm unclear how that's different from the code I was running earlier, but at least it worked.

#

Now the list is showing "id": "apwc_1M2127Chx0YlZiSS3EvAszRA",

#

And since it wasn't erroring then I think I'd probably created that apple pay domain somewhere else.

toxic condor
#

AH, strange. So everything is working now?

west juniper
#

I guess. 😕

#

Can I add another piece of feedback? It would be helpful if the Apple Pay Domain API were documented here: https://stripe.com/docs/api

toxic condor
#

Yeah agreed. That's the first place I looked for info about it too and had to circle back and find the one article that mentions using the API for domain verification.

Will definitely add that as feedback

west juniper
#

Thanks for your help!