Print

Action and Filter Hooks

Filter Hooks

Name Arguments Description
mswr_pre_stripe_checkout array $args
[key=>value, ...]

Add/modify parameters prior to Stripe Checkout.

See also

mswr_shortcode_html string $html
The button html.

Modify the shortcode default html.

Permitted elements are:

  • <a>
  • <button>
  • <div>
  • <span>

*Only active when using the shortcode button

Action Hooks

Name Arguments Description
mswr_initiate_stripe_payment array $args
[key=>value, ...]

Call do_action() to initiate a Stripe Checkout session with the parameters you specify in $args

Initiates a Stripe Checkout Session. Stripe returns to the success_url or cancel_url specified in $args

See also

mswr_transaction_complete array $transaction use add_action() to listen for transaction complete
mswr_{$type}

Stripe object

$event

receive direct notification of a Stripe webhook callbacks.

eg. a webhook callback of payment_intent.succeeded will create an action of {mswr_payment_intent_succeeded}

mswr_rate_limit_exceeded string $ip_address

Notification of too many requests from an ip address that exceeds the rate limit defined in MSWR settings.

Page Navigation