/** * buyCRED Payment Completed * @version 1.0 */ function mycred_pro_buycred_payment_completed( $reply, $transaction_id, $gateway ) { if ( $reply ) { // Payment was completed successfully } else { // Payment failed to complete (declined by myCRED) } return $reply; } add_filter( 'mycred_buycred_complete_payment', 'mycred_pro_buycred_payment_completed', 10, 3 );