Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Stripe Payment Completed
- * @version 1.0
- */
- function mycred_pro_stripe_payment_completed( $message, $pending_payment, $gateway ) {
- $point_type = $pending_payment->point_type; // the point type purchased
- $cost = $pending_payment->cost; // the cost
- $currency = $pending_payment->currency; // the currency
- $amount = $pending_payment->amount; // the point amount requested
- $buyer_id = $pending_payment->buyer_id; // the numeric id of the buyer
- $recipient_id = $pending_payment->recipient_id; // the recipient id unless this is a gift, this is the same as $buyer_id
- $transaction_id = $pending_payment->transaction_id; // the transaction id assigned by the gateway processor
- return $message;
- }
- add_filter( 'mycred_stripe_purchase_success', 'mycred_pro_stripe_payment_completed', 10, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement