phplaravelstripe-paymentslaravel-cashier

Stripe - "the payment method type is invalid" for Setup Intent


I'm trying to get paid with stripe at my restaurant.

I get an error when I try to use several of the payment methods Stripe supports for SetupIntent.

I can use 'card', 'sofort', 'bancontact', 'ideal', 'sepa_debit' payment methods but when I choose one of the supported:

'au_becs_debit', 'boleto', 'acss_debit', 'us_bank_account'

methods I get the following error.

Stripe\Exception\InvalidRequestException
The payment method type "us_bank_account" is invalid. See https://stripe.com/docs/api/setup_intents/create#create_setup_intent-payment_method_types for the full list of supported payment method types.
https://yemeksofort.com/cart-checkout
$user = \Illuminate\Support\Facades\Auth::user();
$stripeCustomer = $user->createOrGetStripeCustomer();

$params = [
    'payment_method_types' => [
        'card', 'sofort', 'bancontact', 'ideal', 'sepa_debit'
    ],
    'customer' => $stripeCustomer->id,
];

$stripeIntent = $user->createSetupIntent($params);

I thought there was a restriction on my Stripe account but I have allowed all payment methods. Above is my PHP code. Does anyone have a solution or guide? Thank you.


Solution

  • Yes, I contacted Stripe support.

    The error message the API returns is incorrect. My account location is Belgium and I needed a US Stripe account to use these methods.

    They conveyed that it is not possible to change the Stripe account location. Thanks to everyone who helped.