Below is a list of action hooks that are available in the Stripe Payments Plugin.
Thank You Page
asp_stripe_payments_checkout_page_result
This filter allows you to modify the output data on the Thank you/checkout result page. This can be used to add some additional details to the thank you page message shown by this plugin after a transaction.
Below is an example of how to use this filter:
add_filter('asp_stripe_payments_checkout_page_result', 'asp_custom_thank_you_msg', 10, 2); function asp_custom_thank_you_msg ($output, $txn_data) { //Do stuff //print_r($txn_data);//Lets see what transaction data is available in this array. $output .= 'This text will be added to the thank you page message.'; return $output; }
Stripe Payment Button
asp_additional_stripe_checkout_data_parameters
This filter can be used to add extra data parameters for stripe checkout.
Stripe Orders
asp_order_before_insert
This filter is executed before the order data is inserted into the orders table (after a transaction).