#sanderfish
1 messages · Page 1 of 1 (latest)
Just found the config at ~/.config/stripe/config.toml
Should be able to get this running!
What are you trying to do with CLI?
Trying to retrieve & create apple pay domains, as there is no way to do this for connected accounts via the dashboard.
Do you set --stripe-account as connected account ID in the command? https://stripe.com/docs/cli/post#post-stripe-account
CLI should be logged in with the platform account
It looks like I'm just missing the API key at the moment, I didn't realize I had to setup the config at ~/.config/stripe/config.toml
Going to do that now
Seems like it's not possible to use the CLI in livemode?
Can you share the reqeust ID (req_xxx) in text?
req_fl3s8rvcUAGNcJ
The live key gets redacted in the config.toml file
And then the redacted key is used in the request
This is strange. I'm unable to find req_fl3s8rvcUAGNcJ at my side
If you use curl command, will it work?
curl https://api.stripe.com/v1/apple_pay/domains \
-H "Stripe-Account: acct_xxx" \
-u "sk_live_••••••••••••••••••••••••": \
-d domain_name="example.com"
Same actually, the request log 404s
Can you share your platform account ID? You can find your account ID by logging in to https://dashboard.stripe.com/settings/account. It'll be in the upper right hand corner and looks like acct_123
I just managed to make the request via Insomnia
As described above, the issue seems to be that the CLI refuses to use live mode values from the config #1143024050990497902 message
I see! Great to hear that it works now. I'd expect direct curl command to work since it doesn't go through CLI
would be great to be able to do this via the CLI, the interface is very nice, but I'll save the requests in Insomnia instead 🙂
Hi @solemn lagoon I'm taking over, let me know if you have any follow-up questions
hey jack. I'm still wondering whether it's possible to use Stripe CLI in livemode
Yes you can https://stripe.com/docs/cli/post#post-live
Okay, so the issue is that whenever I do that, I get this error: #1143024050990497902 message
When I manually add a live key in the config at ~/.config/stripe/config.toml, it removes it when I make another request #1143024050990497902 message
Ah, that's because the restricted key (i.e., rk_live_xxx) that CLI obtained has no permission to register a apple pay domain.
https://stripe.com/docs/cli/api_keys#stripe_api_keys you can add a --api-key flag and specify your secret key (i.e., starts with sk_live_xxx)
Hmm okay. I made a new restricted key that specifically has write access to register an apple pay domain, but that got removed when I tried to use it with the CLI