Last active
March 20, 2025 10:59
-
-
Save LaxusCroco/60c99a17c0ff9a9e629754b96d1a29a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( | |
'jet-form-builder/stripe/payment-methods', | |
function ($methods) { | |
$filtered_methods = array_diff($methods, array('card')); | |
return array('ideal'); | |
}, | |
10 | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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