Integrating WP Full Stripe with other systems

Learn how you can use Wordpress action hooks to integrate the plugin with other systems.

How does it work?

WP Full Stripe fires Wordpress actions when certain events occur.

You can integrate WP Full Stripe with other system by hooking into these actions, and running your own code.

Possible integrations include, but not limited to:

  • Inserting a row into the database with some customer data
  • Adding the customer’s email address to an email list in Mailchimp
  • Sending an SMS notifcation to you when a new subscription is made

Plugin action catalog with examples

The following subsections introduce all Wordpress actions fired by WP Full Stripe through examples.

fullstripe_after_payment_charge

The fullstripe_after_payment_charge action is fired after a successful one-time payment on an inline form.

Action parameters:

Name Description
$paymentIntent Stripe PaymentIntent object which contains all charge-related information.

The example implemenation below logs the payment amount, customer email address, and the name of the form the payment was made on:

fullstripe_after_checkout_payment_charge

The fullstripe_after_checkout_payment_charge action is fired after a successful one-time payment on a checkout form.

Action parameters:

Name Description
$paymentIntent Stripe PaymentIntent object which contains all charge-related information.

The example implemenation below sends email notifications about successful charges:

fullstripe_after_subscription_charge

The fullstripe_after_subscription_charge action is fired after the customer successfully subscribed on an inline form.

Action parameters:

Name Description
$stripeCustomer Stripe Customer object whose latest subscription is the one just created.
$additionalData An associative array with the following members:

‘action_name’ : ‘fullstripe_after_subscription_charge’
‘customer’ : The Stripe Customer object, see also the $stripeCustomer parameter.
‘macros’ : Placeholder token names, including custom fields.
‘macroValues’ : Placeholder token values in the same order as in ‘macros’.

The example implementation below creates a Wordpress user for the subscriber, and sends the login credentials to the subscriber:

fullstripe_after_checkout_subscription_charge

The fullstripe_after_checkout_subscription_charge action is fired after the customer successfully subscribed on a checkout form.

Action parameters:

Name Description
$stripeCustomer Stripe Customer object whose latest subscription is the one just created.
$additionalData An associative array with the following members:

‘action_name’ : ‘fullstripe_after_checkout_subscription_charge’
‘customer’ : The Stripe Customer object, see also the $stripeCustomer parameter.
‘macros’ : Placeholder token names, including custom fields.
‘macroValues’ : Placeholder token values in the same order as in ‘macros’.

The example implementation below adds the subscriber’s email address to a Mailchimp list:

fullstripe_after_card_capture

The fullstripe_after_card_capture action is fired after the Stripe customer has been successfully created on a save card inline form.

Action parameters:

Name Description
$stripeCustomer Stripe Customer object that has just been created.

The example implementation below posts an API request with the customer’s email address:

fullstripe_after_checkout_card_capture

The fullstripe_after_checkout_card_capture action is fired after the Stripe customer has been successfully created on a save card checkout form.

Action parameters:

Name Description
$stripeCustomer Stripe Customer object that has just been created.

The example implementation below posts an API request with the customer’s email address:

Still not finding the solution?

Our support team is happy to help you.

Contact support

Feature requests are always welcome!
We consider each feature request carefully, and examine how it fits the roadmap for the plugin.