Skip to content

Instantly share code, notes, and snippets.

@LaxusCroco
Last active March 20, 2025 10:59
Show Gist options
  • Save LaxusCroco/60c99a17c0ff9a9e629754b96d1a29a0 to your computer and use it in GitHub Desktop.
Save LaxusCroco/60c99a17c0ff9a9e629754b96d1a29a0 to your computer and use it in GitHub Desktop.
<?php
add_filter(
'jet-form-builder/stripe/payment-methods',
function ($methods) {
$filtered_methods = array_diff($methods, array('card'));
return array('ideal');
},
10
);
<?php
add_filter(
'jet-form-builder/stripe/payment-methods',
function ($methods) {
return array_merge(
$methods,
array(
//HERE YOU SHOULD INSERT A LIST OF PAYMENT METHODS THAT YOU NEED, FOR EXAMPLE:
'acss_debit',
'afterpay_clearpay',
'alipay',
'bacs_debit',
'bancontact',
'boleto',
'eps',
'fpx',
'giropay',
'grabpay',
'ideal',
'klarna',
'oxxo',
'p24',
'sepa_debit',
'sofort',
'wechat_pay',
)
);
}, 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment