Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JarrydLong/195fcac3ce176cd4470d9c4df9f5ffb2 to your computer and use it in GitHub Desktop.
Save JarrydLong/195fcac3ce176cd4470d9c4df9f5ffb2 to your computer and use it in GitHub Desktop.
<?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