Skip to content

Bank account verify using a fixture removes /verify from the path when using dynamic IDs #1340

@gwalker-convoy

Description

@gwalker-convoy

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

  • Using a stripe fixture, I want to create a new customer, add a bank account to the customer, an verify the bank account.
  • Ultimate goal is to be able to trigger a charge.pending web hook event.
  • Perceived problem: when using dynamic IDs in a fixture (ex: ${bank_account:id}) for the path, the /verify is somehow lost in the value path: /v1/customers/:id/sources/:id/verify, resulting in a failure.

Expected Behavior

Tell us what you expected to happen

  • A customer is created with a verified bank account as the default payment method

Steps to reproduce

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

  • bank.verify.fails.json

  • bank.verify.json

  • Using attached file bank.verify.fails.json, run stripe fixtures bank.verify.fails.json

    • Expected: A new customer is created with a verified bank account
    • Actual:
Running fixture: bank.verify.fails.json
Setting up fixture for: customer
Running fixture for: customer
Setting up fixture for: bank_account
Running fixture for: bank_account
Setting up fixture for: bank_account_verify
Running fixture for: bank_account_verify
Request failed, status=400, body={
  "error": {
    "code": "parameter_unknown",
    "doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
    "message": "Received unknown parameter: amounts",
    "param": "amounts",
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_vGGBD3SVjZbPkK?t=1748551143",
    "type": "invalid_request_error"
  }
}
  • Retrieve and note the customer id and bank account id from the Stripe dashboard
  • Using the attached file bank.verify.json, manually fill in the customer id and the bank account id
  • Run stripe fixtures bank.verify.json
    • Expected: Customer bank is verified

Traceback

Share any debug output that was given by the CLI
Image

Environment

Select one of: macOS, Linux, Windows, Other

  • macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions