Created
May 26, 2025 10:33
-
-
Save JarrydLong/195fcac3ce176cd4470d9c4df9f5ffb2 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 //do not copy | |
/** | |
* This recipe will add the Crypto payment method in Stripe Connect. | |
* | |
* Add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
* Works for PayPal Express and Stripe payment gateways. | |
* www.paidmembershipspro.com | |
*/ | |
function mypmpro_set_crypto( $checkout_session_params, $morder, $customer ) { | |
$checkout_session_params['payment_method_types'] = ['card', 'crypto']; | |
return $checkout_session_params; | |
} | |
add_filter( 'pmpro_stripe_checkout_session_parameters', 'mypmpro_set_crypto', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment