I have installed the Stripe CLI and I'm using it to test some PHP code I've written in the Drupal CMS.
Stripe and Drupal are linked through Stripe's webhooks functionality.
I have a test customer in Stripe with a valid subscription.
Now I want to test the webhook event when the subscription renewal payment fails for this customer.
Based on the Stripe trigger docs, I tried this:
stripe trigger invoice.payment_failed --stripe-account=cus_abcdefg
Where cus_abcdefg is the customer ID shown in the stripe dashboard at
https://dashboard.stripe.com/test/customers/cus_abcdefg
However, this gives the following error:
Running fixture for: customer
Trigger failed: Request failed, status=403, body={
"error": {
"code": "platform_account_required",
"doc_url": "https://stripe.com/docs/error-codes/platform-account-required",
"message": "Only Stripe Connect platforms can work with other accounts. If you specified a client_id parameter, make sure it's correct. If you need to setup a Stripe Connect platform, you can do so at https://dashboard.stripe.com/account/applications/settings.",
"type": "invalid_request_error"
}
}
It seems this error isn't relevant because I am using the official Stripe CLI, not some platform. So I guess I have the ID wrong.
What ID am I supposed to use for --stripe-account?