-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow the bypass of payment_method_types
#251
Comments
This wouldn't just be cool. It's absolutely necessary to be able to configure the payment methods |
Found a way to override it: use craft\commerce\stripe\base\Gateway as StripeGateway;
use craft\commerce\stripe\events\BuildSetupIntentRequestEvent;
Event::on(
StripeGateway::class,
StripeGateway::EVENT_BUILD_SETUP_INTENT_REQUEST,
function(BuildSetupIntentRequestEvent $event) {
$event->request["payment_method_types"] = ["card"];
}
); |
Hi @okolvik-avento - trying to implement something similar here. Can you share how you are implementing this override? |
Hi All Thanks for highlighting this. We have pushed a fix which means the payment method options shown to the user will now match those that are enabled in your Stripe dashboard. As @okolvik-avento mentioned you can still alter/restrict these by using the This fix will be included in the next release of the plugin. Thanks! |
Hi All Version Thanks! |
Hey there,
The current default request by the CustomerController is set to
['bancontact', 'card', 'ideal']
as percommerce-stripe/src/controllers/CustomersController.php
Lines 129 to 132 in e779b6f
It would be cool to be able to select our own default
payment_method_types
in the settings.Or is there a way to tweak that via the params object of the
{{ gateway.getPaymentFormHtml(params)|raw }}
?Thanks a lot
The text was updated successfully, but these errors were encountered: