Home › Forums › Stripe Payments Plugin › Action Hook not working. › Reply To: Action Hook not working.
April 16, 2018 at 5:55 pm
#655
Admin
Keymaster
That action hooks passes 2 arguments to the callback function. So make sure to catch it like the following example:
add_action ('asp_stripe_payment_completed', 'execute_my_custom_code', 10, 2);
function execute_my_custom_code ($post_data, $charge) {
//Do stuff here
}