function uc_stripe_mail_tokens in Ubercart Stripe 7.3
Token callback that adds the authentication link to user mails.
This function is used by the token_replace() call in uc_stripe_mail() to add the url to verify payment information
Parameters
$replacements: An associative array variable containing mappings from token names to values (for use with strtr()).
$data: An associative array of token replacement values.
$options: Unused parameter required by the token_replace() function.
1 string reference to 'uc_stripe_mail_tokens'
- uc_stripe_mail in ./
uc_stripe.mail.inc - Implements hook_mail().
File
- ./
uc_stripe.mail.inc, line 39
Code
function uc_stripe_mail_tokens(&$replacements, $data, $options) {
global $base_url;
$replacements['[uc_stripe:verification-link]'] = $base_url . '/stripe/authenticate-payment/' . $data['authentication_key'];
}