Skip to content

Instantly share code, notes, and snippets.

@jeffaspenburg
Created April 10, 2019 17:45
Show Gist options
  • Save jeffaspenburg/10a0da747225cbbf40adc5021da9e770 to your computer and use it in GitHub Desktop.
Save jeffaspenburg/10a0da747225cbbf40adc5021da9e770 to your computer and use it in GitHub Desktop.
$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