Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

payment_method.detached event trigger doesn't work #1209

Open
vishal-sood opened this issue Jun 20, 2024 · 1 comment
Open

payment_method.detached event trigger doesn't work #1209

vishal-sood opened this issue Jun 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vishal-sood
Copy link

The more information we have the easier it is for us to help. Feel free to remove any sections that might not apply

Issue

Describe what happened and what you were trying to do

Triggering the payment_method.detached event using the CLI (v1.20.0) doesn't work.

It fails 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"
  }
}

Expected Behavior

Tell us what you expected to happen

The payment method detach API call to work which would eventually result in the payment_method.detached event being triggered

Steps to reproduce

What are the steps we can take to reproduce this and verify it's fixed?

Try running the following command Stripe CLI command:

stripe trigger payment_method.detached
@vishal-sood vishal-sood added the bug Something isn't working label Jun 20, 2024
@vishal-sood
Copy link
Author

I've already created a PR which I believe would fix the issue: #1207

@vishal-sood vishal-sood changed the title payment_method.detached event trigger not working payment_method.detached event trigger doesn't work Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant