-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to unset the payment_method_types
parameter
#1379
Comments
Yes, we should make this configurable somehow. Maybe adding an |
For a project of mine, I have the exact same need coming. |
Would appreciate a PR to 13.x for the array filter thing 👍 |
Alright, will work on it somewhere this week! |
Hi, I've just done a few tests, passing This is because $session = $owner->stripe()->checkout->sessions->create(array_merge([
'customer' => $customer->id,
'mode' => 'payment',
'success_url' => $sessionOptions['success_url'] ?? route('home').'?checkout=success',
'cancel_url' => $sessionOptions['cancel_url'] ?? route('home').'?checkout=cancelled',
'payment_method_types' => ['card'],
], $sessionOptions)); The parameters we pass to Cashier from the app are stored in @jacob418 could you confirm passing |
@ffeytons hah, you're right, that should indeed already work. |
payment_method_types
parameterpayment_method_types
parameter
I can confirm that the proposed empty array parameter ( |
I've sent in a PR for this for the next major version. Unfortunately there isn't a good way to integrate this in v13. In v14, this will be the new default: #1400 |
Stripe offers the ability to manage supported payment methods from the dashboard. However within
\Laravel\Cashier\Checkout::create
this parameter is hardcoded. There should be an option, to make Cashier obmit this parameter completely so the full potential of stripe can be used. For example:\Laravel\Cashier\Cashier::configurePaymentMethodsViaDashboard(true)
.The text was updated successfully, but these errors were encountered: