This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Sezzle Woocommerce Payment


Sezzle is a payment gateway for letting your customers buy now and pay later.

Restrict Sezzle based on user roles

Make sure Sezzle Gateway plugin is active in WordPress admin.

Hide Sezzle Payment Gateway

If you want to hide Sezzle’s payment gateway based on user roles

  1. Add the following function to your code:

    function restrict_sezzle_pay($available_gateways) {
    return $available_gateways;

  2. Call the following filter inside the user’s access deciding code:

    add_filter(‘woocommerce_available_payment_gateways’, ‘restrict_sezzle_pay’);

Hide Sezzle Product Widget

If you want to hide Sezzle’s product widget based on user’s roles

  1. Call the following action inside the user’s access deciding code:

    remove_action(‘woocommerce_single_product_summary’, ‘add_sezzle_product_banner’);

Example code with woocommerce-memberships plugin:

If you are using woocommerce-memberships to deal with user roles and restrictions, you can use the following code to hide Sezzle gateway and product widget based on user’s role like so:

$user_id = 1;
$plan_id = 42;
$plan = get_post($plan_id);
// If user does not belong to the plan
if(!wc_memberships_is_user_member($user_id, $plan)) {
    // hide the gateway
    add_filter('woocommerce_available_payment_gateways', 'restrict_sezzle_pay'); // make sure restrict_sezzle_pay function is available
    // hide the product widget
    remove_action('woocommerce_single_product_summary', 'add_sezzle_product_banner');


  1. Read about woocommerce_available_payment_gateways hook here.


  1. Signup for Sezzle at Login to your dashboard and keep your API Keys page open. You will need it in step 6.
  2. Make sure you have WooCommerce plugin installed.
  3. Install the Sezzle WooCommerce plugin and activate it.
  4. Go to admin > WooCommerce > Settigns > Checkout > Sezzle.
  5. Fill the form according to the instructions given in the form and save it.
  6. Use the gateway address as

Your store is ready to use Sezzle as a payment gateway.

Contributors & Developers

“Sezzle Woocommerce Payment” is open source software. The following people have contributed to this plugin.