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.