#Vlad007123-us-bank-account
1 messages · Page 1 of 1 (latest)
Hey there! I believe I spoke to you just the other day about this. Did you manage to speak to support?
Your account wasn't gated to that feature
Can you share your account ID please? Let me check for you
I am working in test mode
Still checking on this for you
ok, thanks
You need to pass a specific apiVersion header if the API request
Looking at your account logs, you aren't do that: https://dashboard.stripe.com/test/logs/req_4AYl6v4vmrGqcu
And you won't be able to with stripe-dotnet as it doesn't support that 😦
So, what should I do?
Can you try the same API call (via cURL or similar), but passing the API version header? Something like:
curl https://api.stripe.com/v1/checkout/sessions \
-u sk_test_xxx: \
-d "mode"="setup" \
-d "customer"="{{CUSTOMER_ID}}" \
-d "payment_method_types[]"="card" \
-d "payment_method_types[]"="us_bank_account" \
-d "success_url"="https://example.com/success" \
-d "cancel_url"="https://example.com/cancel" \
-H "Stripe-Version:2020-08-27;us_bank_account_beta=v2"
If that works, then we know the issue
Can I do that in Postman?
Yep, should work
Just add the header: Stripe-Version:2020-08-27;us_bank_account_beta=v2
It should be POST?
Yep
Can you give me the body in json?
The API doesn't accept JSON payloads. Needs to be form-encoded
The headers look wrong
the Stripe-Version header needs to be: 2020-08-27;us_bank_account_beta=v2
One single header
In the headers to, like: Authorization: Bearer sk_test_xxx (don't share that here though)
Should this also be i one param?
{
"error": {
"message": "Invalid array",
"param": "payment_method_types",
"type": "invalid_request_error"
}
}
Ah, needs to be like:
payment_method_types[0]: card
payment_method_types[1]: us_bank_account
Yeah so you can't use a custom Stripe-Version header with stripe-dotnet
So for the meantime, until this feature is public, you'll need to make the API request with a regular HTTP call from your app
ok, thank you
Sure, np!