• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Stripe Plugins

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • My Downloads
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Stripe Payments Plugin – Action Hooks Reference

Stripe Payments Plugin – Action Hooks Reference

Below is a list of action hooks that are available in the Stripe Payments Plugin.

Payment Process

asp_ng_before_payment_processing 

Fired before payment processing has begun. 

Parameters:

$post_data (array)
Has combined payment info data from $_POST array.

asp_stripe_payment_completed

This hook executes after a transaction is completed. This can be used to do some additional tasks after a transaction takes place.

Parameters:

$data (array)
Payment info data array.

$charge (array)
Charge object from Stripe.

Below is an example of how to use this hook:

add_action('asp_stripe_payment_completed', 'asp_after_txn_callback', 10 ,2);
function asp_after_txn_callback ($post_data, $charge)
{
    //Do stuff
    //$charge is the Stripe charge object.
    //print_r($post_data);//Lets see what info is in this array.
}

Miscellaneous 

asp_clear_external_caches

This hook executes when plugin needs external caching plugins to clear page cache. Currently only fired after plugin settings update.

Primary Sidebar

Search

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay and Google Pay

Addon Bundle

Stripe Payments Addon Bundle

Support Links

  • Support Forum
  • Forum Registration

Copyright © 2021 | Stripe Plugins | A member of the Tips and Tricks HQ family.