#Vlad007123-us-bank-account

1 messages · Page 1 of 1 (latest)

tropic saffron
#

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

rugged hollow
#

Yes

#

They said that it is fixed

tropic saffron
#

Can you share your account ID please? Let me check for you

rugged hollow
#

just a second

#

acct_1JrMjDFXP9IgMuNp

#

The error mesage is changed

tropic saffron
#

Hmm, you're right

#

Taking a look

rugged hollow
#

I am working in test mode

tropic saffron
#

Still checking on this for you

rugged hollow
#

ok, thanks

tropic saffron
#

You need to pass a specific apiVersion header if the API request

#

And you won't be able to with stripe-dotnet as it doesn't support that 😦

rugged hollow
#

So, what should I do?

tropic saffron
#

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

rugged hollow
#

Can I do that in Postman?

tropic saffron
#

Yep, should work

#

Just add the header: Stripe-Version:2020-08-27;us_bank_account_beta=v2

rugged hollow
#

It should be POST?

tropic saffron
#

Yep

rugged hollow
#

Can you give me the body in json?

tropic saffron
#

The API doesn't accept JSON payloads. Needs to be form-encoded

rugged hollow
#

Is this good?

#

Where should I put sk_test_xxx?

tropic saffron
#

The headers look wrong

#

the Stripe-Version header needs to be: 2020-08-27;us_bank_account_beta=v2

#

One single header

tropic saffron
rugged hollow
#

Should this also be i one param?

#

{
"error": {
"message": "Invalid array",
"param": "payment_method_types",
"type": "invalid_request_error"
}
}

tropic saffron
#

Ah, needs to be like:
payment_method_types[0]: card
payment_method_types[1]: us_bank_account

rugged hollow
#

it works

#

So I need to make API call from the application

tropic saffron
#

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

rugged hollow
#

ok, thank you

tropic saffron
#

Sure, np!