Browse: Home / Snippets /

Add additional Payment Methods to Stripe

Contents


Snippet #

Important: All snippets are provided as-is without support or guarantees. These snippets are provided as guidelines for advanced users looking to customize LearnDash. For any additional help or support with these snippets, we recommend reaching out to a LearnDash Expert.

/* This snippet should allow you to add additional Payment Methods to LD Stripe gateway.
* You can find a complete list at; https://docs.stripe.com/api/payment_methods/create
* Example below will enable Klarna & Twint when checking out.
*/
add_filter( 'learndash_stripe_payment_method_types', function( $enabled_payment_methods ) {
    $enabled_payment_methods[] = 'twint'; // enables twint
    $enabled_payment_methods[] = 'klarna'; // enables klarna
    
    return $enabled_payment_methods;
}, 99, 1 );