You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This documentation is the flow for attaching an external bank account to a connected account. The general flow is create SetupIntent -> display the FinancialConnections UI -> Receive a payment method id -> Tokenize the payment method -> Attach that to the connected account.
The tokenization code looks like:
// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
stripe.Key = "sk_test_51MpJbGHG00DxLhNtswrIgTH1MysmObg8ypgOLIhEoI6qRH61oJ5cv5Fn5YwvpYoLnzfRF1yd20EKvtl2pnYm5j5g00FhIM6KlJ"
params := &stripe.TokenParams{
BankAccount: &stripe.BankAccountParams{
PaymentMethod: stripe.String("{{PAYMENT_METHOD_ID}}"),
},
Customer: stripe.String("{{CUSTOMER_ID}}"),
};
params.SetStripeAccount("{{CONNECTED_ACCOUNT_ID}}")
result, err := token.New(params);
This results in a compile-time error:
unknown field PaymentMethod in struct literal of type "github.com/stripe/stripe-go/v81".BankAccountParams
I can confirm that this is indeed not defined in the most recent code on Github:
Describe the bug
This documentation is the flow for attaching an external bank account to a connected account. The general flow is
create SetupIntent
->display the FinancialConnections UI
->Receive a payment method id
->Tokenize the payment method
->Attach that to the connected account
.The tokenization code looks like:
This results in a compile-time error:
I can confirm that this is indeed not defined in the most recent code on Github:
stripe-go/bankaccount.go
Line 242 in c2787d8
To Reproduce
Expected behavior
Code compiles and runs
Code snippets
No response
OS
MacOS
Go version
1.21.6
stripe-go version
v81
API version
2020-08-27
Additional context
No response
The text was updated successfully, but these errors were encountered: