Created
April 10, 2019 17:45
-
-
Save jeffaspenburg/10a0da747225cbbf40adc5021da9e770 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$user = new MeprUser($txn->user_id); | |
$args['subscription']['customer'] = array('email' => $user->user_email); | |
return $args; | |
} | |
//Commented out due to issues | |
//add_filter('mepr_authorize_create_subscription_args', 'add_email_to_recurring', 11, 3); | |
function add_email_to_oneoff($args, $txn) { | |
$user = new MeprUser($txn->user_id); | |
$args['x_email'] = $user->user_email; | |
return $args; | |
} | |
add_filter('mepr_authorize_payment_args', 'add_email_to_oneoff', 11, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment