Last active
May 5, 2023 15:35
-
-
Save wpfullstripe/caeee4a0e8a6251a4523127cc74604ad to your computer and use it in GitHub Desktop.
Wordpress filter to enable MOTO payment for checkout forms of WP Full Pay
This file contains 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 | |
function checkoutSessionParameters( $params ) { | |
$result = $params; | |
$result['payment_method_options'] = [ | |
'card' => [ | |
'moto' => true | |
] | |
]; | |
return $result; | |
} | |
add_filter('fullstripe_checkout_session_parameters', 'checkoutSessionParameters', 10, 1 ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment