Print

Overview

The MSWR plugin provides a flexible, low-footprint way to integrate Stripe Checkout into your WordPress site. It allows you to process one-time payments securely using Stripe’s hosted checkout flow.

How It Works

Regardless of how the payment is triggered (shortcode, block, CSS class, or action hook), all transactions follow a common internal workflow:

1. Initiating the Payment

The plugin accepts the payment details, including amount, currency, and return URLs.

Developers can modify these details using an optional filter hook.

2. Redirecting to Stripe Checkout

The user is securely redirected to Stripe’s hosted checkout page.

No card details are handled or stored by your site.

3. Completing or Cancelling the Payment

If the user completes the payment, they are redirected to the success page.

If they cancel, they are sent to a designated cancel URL.

    4. Confirming the Payment (Asynchronous Webhook Callback)

    If the payment is successful, Stripe sends a webhook callback to notify your site.

    This helps ensure transactions are recorded, even if the user does not return to the site.

    Note that webhook delivery, is not guaranteed in all cases (e.g., network issues, invalid webhook keys, user navigation). The plugin logs transactions to help track incomplete payments.

    Different Ways to Trigger a Payment

    Method Best For How It Works
    Minimal Stripe Button – Gutenberg Block No-code/Gutenberg users Insert a payment button via Gutenberg Block.
    Shortcode No-code users Insert a payment button via WordPress shortcode.
    Donate Form Shortcode No-code users Insert a payment form with user-entry for amount.
    CSS Class Designers & site owners Attach Stripe Checkout to an existing button using a class.
    Filter Hook Developers Programmatically trigger payments with custom logic.

    Do I Need to Code?

    No! If you’re a no-code user, simply use the block method or one of the shortcode methods to create a Stripe payment quickly.

    Page Navigation