#michael-harvey_webhook-testing-cli

1 messages ¡ Page 1 of 1 (latest)

nova aspenBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1362087178901000272

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

bronze scaffold
#

PS C:\Users\michael.harvey> stripe trigger payment_intent.succeeded --stripe-account 'acct_1O1uRUQpGQ9Dorjj' --add payment_intent:metadata.PatientId=69692695 --add payment_intent:metadata.ProviderId=305764
A newer version of the Stripe CLI is available, please update to: v1.26.1
Setting up fixture for: payment_intent
Running fixture for: payment_intent
Trigger failed: Request failed, status=403, body={
"error": {
"code": "account_invalid",
"doc_url": "https://stripe.com/docs/error-codes/account-invalid",
"message": "The provided key 'rk_test_*********************************************************************************************IrKUOh' does not have access to account 'acct_1O1uRUQpGQ9Dorjj' (or that account does not exist). Application access may have been revoked.",
"type": "invalid_request_error"
}
}

Learn more about Stripe API error codes and how to resolve them.

#

it seems like it's using a test api key instead of the live api key

heady salmon
#

Yeah that's expected though

#

The cli is for testing

bronze scaffold
#

how can i test in prod?

heady salmon
#

The real issue here though is that acct_1O1uRUQpGQ9Dorjj isn't connected to any platform

#

--stripe-account tells the request to run on the passed connect account id

heady salmon
#

Prod isn't for testing

#

Create a sandbox account for that

nova aspenBOT