stripe / stripe-cli

A command-line tool for Stripe
https://stripe.com/docs/stripe-cli
Apache License 2.0
1.57k stars 362 forks source link

Fix trigger fixture for `payment_method.detached` event #1207

Open vishal-sood opened 1 week ago

vishal-sood commented 1 week ago

Reviewers

r? @ cc @stripe/developer-products

Summary

Triggering the payment_method.detached event using the CLI (v1.20.0) is failing with the following error:

Trigger failed: Request failed, status=404, body={
  "error": {
    "code": "resource_missing",
    "doc_url": " https://stripe.com/docs/error-codes/resource-misssing",
    "message" "No such PaymentMethod: '${payment_method_attach.id}'; It's possible this PaymentMethod exists on one of your connected accounts, in which case you should retry this request on that connected account. Learn more at https://stripe.com/docs/connect/authentication",
    "param": "payment_method",
    "request_log_url": <redacted>,
    "type": "invalid_request_error"
  }
}

This PR updates the fixture which should resolve this issue!

CLAassistant commented 1 week ago

CLA assistant check
All committers have signed the CLA.