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

Unable to pass bank account details to CreateAccount::external_account #412

Open
tantialex opened this issue Jul 18, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@tantialex
Copy link

Describe the bug

CreateAccount::external_account only accepts &str. How may I pass bank account details as mentioned in the documentation.

/// You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.

To Reproduce

CreateAccount {
    external_account: Some("".to_owned()),
    ..Default::default()
}

Expected behavior

CreateAccount {
    external_account: Some(CreateAccountExternalAccount { ... }),
    ..Default::default()
}

Code snippets

No response

OS

windows 10 - wsl2

Rust version

1.70.0

Library version

0.22.2

API version

2022-11-15

Additional context

No response

@tantialex tantialex added the bug Something isn't working label Jul 18, 2023
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