#mattwoberts
1 messages · Page 1 of 1 (latest)
Hi there!
Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
I think I'm OK actually - I was getting this error:
Stripe.StripeException: Invalid currency options usd. The payment method bacs_debit only supports the following currencies: gbp.
at Stripe.StripeClient.ProcessResponse[T](StripeResponse response) in /_/src/Stripe.net/Infrastructure/Public/StripeClient.cs:line 163
at Stripe.StripeClient.RequestAsync[T](HttpMethod method, String path, BaseOptions options, RequestOptions requestOptions,
Turns out I was passing "bacs_debit" as a payment type, even when the customer was USA-based, so their currency was "usd" which obviously doesn't support bacs_debit...
I've just added this:
public List<string> GetCustomerPaymentMethods(Organisation org)
{
return org.Currency == "gbp" ? new List<string> {"card", "bacs_debit"} : new List<string> {"card"};
}
So basically - if customers currency is usd, don't offer bacs!