#michael-harvey_webhook-testing-cli
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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"
}
}
it seems like it's using a test api key instead of the live api key
how can i test in prod?
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
You can't
Prod isn't for testing
Create a sandbox account for that