Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Stripe: Disable 'Remember Me'

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-29-2015, 05:17 PM
 
pb30 pb30 is offline
 

Newbie
  
Join Date: Jul 2015
Posts: 2
 

Default Stripe: Disable 'Remember Me'

Is it possible to disable the Stripe 'Remember Me' functionality?
__________________
XCart 5.2.6
Reply With Quote
  #2  
Old 11-03-2015, 05:27 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Stripe: Disable 'Remember Me'

Quote:
Originally Posted by pb30
Is it possible to disable the Stripe 'Remember Me' functionality?
The CC submit form is loaded from the Stripe CDN, so it doesn't seem likely that it can be changed on X-Cart side.
I would advise to contact Stripe support for the answer.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #3  
Old 11-03-2015, 06:36 AM
 
pb30 pb30 is offline
 

Newbie
  
Join Date: Jul 2015
Posts: 2
 

Default Re: Stripe: Disable 'Remember Me'

It's controlled by the XCart module JS. Need to add "allowRememberMe: false," to the options var in payment.js and payment.mobile.js. Be great if it was configurable in module settings though.
__________________
XCart 5.2.6
Reply With Quote

The following user thanks pb30 for this useful post:
kontrabass_forum (07-21-2016)
  #4  
Old 11-04-2015, 05:32 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Stripe: Disable 'Remember Me'

Quote:
Originally Posted by pb30
It's controlled by the XCart module JS. Need to add "allowRememberMe: false," to the options var in payment.js and payment.mobile.js. Be great if it was configurable in module settings though.
Thanks for the information
Didn't dig that deep.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #5  
Old 07-21-2016, 10:26 PM
 
kontrabass_forum kontrabass_forum is offline
 

Advanced Member
  
Join Date: Mar 2016
Posts: 41
 

Default Re: Stripe: Disable 'Remember Me'

Quote:
Originally Posted by pb30
It's controlled by the XCart module JS. Need to add "allowRememberMe: false," to the options var in payment.js and payment.mobile.js. Be great if it was configurable in module settings though.

Would you mind sharing a few lines of where and how you included this? I found the .js files but am having trouble getting this fix to work. TIA!
__________________
x-cart 5.3.x
Reply With Quote
  #6  
Old 07-22-2016, 07:53 AM
 
pb30 pb30 is offline
 

Newbie
  
Join Date: Jul 2015
Posts: 2
 

Default Re: Stripe: Disable 'Remember Me'

Code:
diff --git a/skins/default/en/modules/XC/Stripe/payment.js b/skins/default/en/modules/XC/Stripe/payment.js index be3d69a..c383ce6 100644 --- a/skins/default/en/modules/XC/Stripe/payment.js +++ b/skins/default/en/modules/XC/Stripe/payment.js @@ -23,6 +23,7 @@ core.bind( // Configure Stripe handler var options = { key: box.data('key'), + allowRememberMe: false, token: function(token, args) { jQuery('.stripe-box .token').val(token.id); jQuery('body').css('overflow', 'visible'); diff --git a/skins/default/en/modules/XC/Stripe/payment.mobile.js b/skins/default/en/modules/XC/Stripe/payment.mobile.js index 97fc4b4..abb3f85 100644 --- a/skins/default/en/modules/XC/Stripe/payment.mobile.js +++ b/skins/default/en/modules/XC/Stripe/payment.mobile.js @@ -20,6 +20,7 @@ if (box.length && typeof(window.StripeCheckout) != 'undefined' && !handler) { var options = { key: box.data('key'), + allowRememberMe: false, token: function(token, args) { jQuery('.stripe-box .token').val(token.id); jQuery('form.place').submit();
__________________
XCart 5.2.6
Reply With Quote

The following 2 users thank pb30 for this useful post:
kontrabass_forum (07-23-2016), qualiteam (07-27-2016)
  #7  
Old 07-23-2016, 02:10 PM
 
kontrabass_forum kontrabass_forum is offline
 

Advanced Member
  
Join Date: Mar 2016
Posts: 41
 

Default Re: Stripe: Disable 'Remember Me'

Quote:
Originally Posted by pb30
Code:
diff --git a/skins/default/en/modules/XC/Stripe/payment.js b/skins/default/en/modules/XC/Stripe/payment.js index be3d69a..c383ce6 100644 --- a/skins/default/en/modules/XC/Stripe/payment.js +++ b/skins/default/en/modules/XC/Stripe/payment.js @@ -23,6 +23,7 @@ core.bind( // Configure Stripe handler var options = { key: box.data('key'), + allowRememberMe: false, token: function(token, args) { jQuery('.stripe-box .token').val(token.id); jQuery('body').css('overflow', 'visible'); diff --git a/skins/default/en/modules/XC/Stripe/payment.mobile.js b/skins/default/en/modules/XC/Stripe/payment.mobile.js index 97fc4b4..abb3f85 100644 --- a/skins/default/en/modules/XC/Stripe/payment.mobile.js +++ b/skins/default/en/modules/XC/Stripe/payment.mobile.js @@ -20,6 +20,7 @@ if (box.length && typeof(window.StripeCheckout) != 'undefined' && !handler) { var options = { key: box.data('key'), + allowRememberMe: false, token: function(token, args) { jQuery('.stripe-box .token').val(token.id); jQuery('form.place').submit();


That did it! Had to also redeploy store to clear cache. Thanks!
__________________
x-cart 5.3.x
Reply With Quote
  #8  
Old 10-06-2016, 07:48 PM
 
kontrabass_forum kontrabass_forum is offline
 

Advanced Member
  
Join Date: Mar 2016
Posts: 41
 

Default Re: Stripe: Disable 'Remember Me'

Note for others: In x-cart 5.3, the .js files referenced above are now in skins/customer/modules/XC/Stripe
__________________
x-cart 5.3.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:13 AM.

   

 
X-Cart forums © 2001-2020