#sanderfish

1 messages · Page 1 of 1 (latest)

lilac summitBOT
solemn lagoon
#

Just found the config at ~/.config/stripe/config.toml

#

Should be able to get this running!

simple parcel
#

What are you trying to do with CLI?

solemn lagoon
#

Trying to retrieve & create apple pay domains, as there is no way to do this for connected accounts via the dashboard.

simple parcel
#

CLI should be logged in with the platform account

solemn lagoon
#

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?

simple parcel
#

Can you share the reqeust ID (req_xxx) in text?

solemn lagoon
#

req_fl3s8rvcUAGNcJ

#

The live key gets redacted in the config.toml file

#

And then the redacted key is used in the request

simple parcel
#

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"
solemn lagoon
#

Same actually, the request log 404s

simple parcel
solemn lagoon
#

I just managed to make the request via Insomnia

simple parcel
#

I see! Great to hear that it works now. I'd expect direct curl command to work since it doesn't go through CLI

lilac summitBOT
solemn lagoon
#

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 🙂

upper lynx
#

Hi @solemn lagoon I'm taking over, let me know if you have any follow-up questions

solemn lagoon
#

hey jack. I'm still wondering whether it's possible to use Stripe CLI in livemode

upper lynx
solemn lagoon
#

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

upper lynx
#

Ah, that's because the restricted key (i.e., rk_live_xxx) that CLI obtained has no permission to register a apple pay domain.

solemn lagoon
#

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