Jump to content

Tokenized payment gateway workflow changed


Recommended Posts

Hello!

I just upgraded to WHMCS 7.9, I had some customization in my cart and now I have to merge them to the newest standard_cart.

Something changed in the standard card js file,

My payment gateway is tokenized, therefore it has 2 functions

_capture and _storeremote

_storeremote should be used ONLY if the client chooses to save the card right?

However I found that having the _storeremote function set in my payment gateway
sets on the payment checkbox at the cart the data "RemoteCreditCard" and this causes to disable the save card switch.

Then, all the cards get saved and my customers don't have the option to choose to save the card anymore.

Why was this changed? on 7.8 and earlier this was not working that way, I cannot force to my clients to save every card they use, that is illegal!

I should be able to execute only _capture if the client chooses not to save the card
and _storeremote if they choose to do it.

On version 7.8 there was a parameter called "nostore"  on the standar_cart/checkout.tpl witch was set in the input #inputNoStore

No matter if the gateway was tokenized this parameter was sent during the checkout, now if the gateway has the function "_storeremote" in the checkout the input with name "paymentmethod" gets the data-payment-type='RemoteCreditCard' and this parameters hides the nostore switch, and first I cannot save the token for every card with my provider, also, my client must be able to choose to save the card.

Previous WHMCS was working fine, the exact same 2 functions, and if the nostore was 1 , _capture was executed, and if nostore was 0, _storeremote was executed first and then _capture, but this is not working like this anymore, why?

 

Link to comment
Share on other sites

We have Stripe and GoCardless enabled - We have noticed that clients can now add payment methods to their account and save card details which then parts of it are saved in the database. This wasn't the case before 7.9 - There also doesn't seem to be an option to disable it?

Edited by Bertie
Link to comment
Share on other sites

  • 2 months later...
On 1/21/2020 at 8:11 PM, danielfelipe16 said:

Hello!

I just upgraded to WHMCS 7.9, I had some customization in my cart and now I have to merge them to the newest standard_cart.

Something changed in the standard card js file,

My payment gateway is tokenized, therefore it has 2 functions

_capture and _storeremote

_storeremote should be used ONLY if the client chooses to save the card right?

However I found that having the _storeremote function set in my payment gateway
sets on the payment checkbox at the cart the data "RemoteCreditCard" and this causes to disable the save card switch.

Then, all the cards get saved and my customers don't have the option to choose to save the card anymore.

Why was this changed? on 7.8 and earlier this was not working that way, I cannot force to my clients to save every card they use, that is illegal!

I should be able to execute only _capture if the client chooses not to save the card
and _storeremote if they choose to do it.

On version 7.8 there was a parameter called "nostore"  on the standar_cart/checkout.tpl witch was set in the input #inputNoStore

No matter if the gateway was tokenized this parameter was sent during the checkout, now if the gateway has the function "_storeremote" in the checkout the input with name "paymentmethod" gets the data-payment-type='RemoteCreditCard' and this parameters hides the nostore switch, and first I cannot save the token for every card with my provider, also, my client must be able to choose to save the card.

Previous WHMCS was working fine, the exact same 2 functions, and if the nostore was 1 , _capture was executed, and if nostore was 0, _storeremote was executed first and then _capture, but this is not working like this anymore, why?

 

I would like to know if the same thing happens to me, that when you add a card for the first time, the payment is made twice because it is executed in the _storeremote method and in _capture

If so and you fixed it I would like to know how

Thank you

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated