Advertisement
designbymerovingi

mycred_buycred_complete_payment example

Feb 2nd, 2017
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. /**
  2.  * buyCRED Payment Completed
  3.  * @version 1.0
  4.  */
  5. function mycred_pro_buycred_payment_completed( $reply, $transaction_id, $gateway ) {
  6.  
  7.     if ( $reply ) {
  8.         // Payment was completed successfully
  9.     }
  10.     else {
  11.         // Payment failed to complete (declined by myCRED)
  12.     }
  13.  
  14.     return $reply;
  15.  
  16. }
  17. add_filter( 'mycred_buycred_complete_payment', 'mycred_pro_buycred_payment_completed', 10, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement