5 Commits

Author SHA1 Message Date
01a5a1b15f Update from remote. 2019-10-04 21:05:43 -05:00
017b4b731c 7.x-3.x-dev 2019-10-03 21:18:09 -05:00
90baa97458 Remove extra lines. 2017-05-19 16:12:14 -05:00
562e2a3698 Replace lost brackets. 2017-05-19 14:51:38 -05:00
ee03f3243d Clean up. 2017-05-19 11:31:59 -05:00
5 changed files with 26 additions and 15 deletions

BIN
.DS_Store vendored

Binary file not shown.

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.patch

View File

@ -8,8 +8,8 @@ core = 7.x
php = 5.3 php = 5.3
; Information added by Drupal.org packaging script on 2019-08-08 ; Information added by Drupal.org packaging script on 2019-09-13
version = "7.x-3.1" version = "7.x-3.1+1-dev"
core = "7.x" core = "7.x"
project = "uc_stripe" project = "uc_stripe"
datestamp = "1565244191" datestamp = "1568380086"

View File

@ -96,7 +96,7 @@ function uc_stripe_install() {
* Implements hook_uninstall(). * Implements hook_uninstall().
*/ */
function uc_stripe_uninstall() { function uc_stripe_uninstall() {
variable_del('uc_stripe_authenticaiton_required_email'); variable_del('uc_stripe_authentication_required_email');
} }
/** /**
@ -123,8 +123,8 @@ function uc_stripe_schema() {
), ),
'completed' => array( 'completed' => array(
'description' => 'Competion status of this pending order', 'description' => 'Competion status of this pending order',
'type' => 'int', 'type' => 'int',
'not null' => TRUE 'not null' => TRUE
), ),
'hash' => array ( 'hash' => array (
'description' => 'The unqiue has of order and payment id', 'description' => 'The unqiue has of order and payment id',
@ -234,8 +234,7 @@ function _uc_stripe_move_customer_id(&$sandbox) {
} }
/** /**
* * Creates table to track orders that require extra authentication verification.
* create table to track orders that require extra authentication verification.
*/ */
function uc_stripe_update_7301() { function uc_stripe_update_7301() {
@ -267,17 +266,27 @@ function uc_stripe_update_7301() {
'type' => 'varchar', 'type' => 'varchar',
'length' => '100', 'length' => '100',
'not null' => TRUE 'not null' => TRUE
) ),
), ),
'unique keys' => array( 'unique keys' => array(
'hash' => array( 'hash' => array(
'hash' 'hash'
) )
), ),
'primary key' => array( 'primary key' => array('id'),
'id'
)
); );
db_create_table('uc_stripe_pending_auth', $table); db_create_table('uc_stripe_pending_auth', $table);
} }
/**
* Changes typo in variable uc_stripe_authenticaiton_required_email.
*/
function uc_stripe_update_7302() {
$typo_var_name = 'uc_stripe_authenticaiton_required_email';
$value = variable_get($typo_var_name, '');
if (!empty($value)) {
variable_set('uc_stripe_authentication_required_email', $value);
variable_del($typo_var_name);
}
}

View File

@ -416,10 +416,10 @@ function uc_stripe_settings_form() {
$email_text = _uc_stripe_get_authentication_required_email_text(); $email_text = _uc_stripe_get_authentication_required_email_text();
$form['uc_stripe_settings']['uc_stripe_authenticaiton_required_email'] = array( $form['uc_stripe_settings']['uc_stripe_authentication_required_email'] = array(
'#type' => 'textarea', '#type' => 'textarea',
'#title' => t('Email for Recurring payment authentication'), '#title' => t('Email for Recurring payment authentication'),
'#default_value' => variable_get('uc_stripe_authenticaiton_required_email', $email_text), '#default_value' => variable_get('uc_stripe_authentication_required_email', $email_text),
'#description' => t('If your site uses recurring payments, some transactions will require the customer to return to the site and authenticate before the subscrption payment can be processed.') '#description' => t('If your site uses recurring payments, some transactions will require the customer to return to the site and authenticate before the subscrption payment can be processed.')
); );
@ -753,7 +753,7 @@ function uc_stripe_renew($order, &$fee) {
))->execute(); ))->execute();
// Prepare email to alert user that authentication is required. // Prepare email to alert user that authentication is required.
$params['body'] = variable_get('uc_stripe_authenticaiton_required_email', _uc_stripe_get_authentication_required_email_text()); $params['body'] = variable_get('uc_stripe_authentication_required_email', _uc_stripe_get_authentication_required_email_text());
$params['user'] = user_load($order->uid); $params['user'] = user_load($order->uid);
$params['hash'] = $hash; $params['hash'] = $hash;
drupal_mail('uc_stripe', 'authentication_required', $params['user']->mail,language_default(), $params); drupal_mail('uc_stripe', 'authentication_required', $params['user']->mail,language_default(), $params);