Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * 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 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement