Created
May 5, 2023 15:30
-
-
Save wpfullstripe/e2a11e413873c50cf838d8a7bc92ba7a to your computer and use it in GitHub Desktop.
Wordpress filter to enable MOTO payment for inline 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 paymentIntentParameters( $params ) { | |
$result = $params; | |
$result['payment_method_options'] = [ | |
'card' => [ | |
'moto' => true | |
] | |
]; | |
return $result; | |
} | |
add_filter('fullstripe_payment_intent_parameters', 'paymentIntentParameters', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment