#danielncr
1 messages · Page 1 of 1 (latest)
When you say "list the domains" what do you mean?
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.
Do you have a request ID?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
So after running the CLI command above I should see a request here: https://dashboard.stripe.com/logs?method[0]=post&method[1]=delete&direction[0]=connect_in&direction[1]=self
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
(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"
So the URL is now https://dashboard.stripe.com/logs?showIP=false&dashboard=false&direction[]=self&direction[]=connect_in&direction[]=connect_out
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
What's the account ID you're using?
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
It may sound too simple, but have you made sure that account actually has an Apple Pay domain registered successfully?
You can tell by logging into that account's dashboard and viewing this page: https://dashboard.stripe.com/settings/payments/apple_pay
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
Are you seeing request logs in the Stripe dashboard for requests made by that code?
no
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
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
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?
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.
AH, strange. So everything is working now?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
Thanks for your help!