Jump to content

removing credit card on client area


Walther

Recommended Posts

Using Stripe (or any other token-based gateway), few data of client's credit card are recorded (last 4 numbers, expire date)
The user can edit this data, but is not able to delete it (only in admin area it's possible to delete it... so the user should open a ticket, asking for deleting these data, and admin should delete it manually... time consuming and annoying)

An API to delete a recorded credit card does exist: DeletePayMethod ( https://developers.whmcs.com/api-reference/deletepaymethod/ )

So, a fix should be:

  • add a button "Delete" in client area in /index.php/account/paymentmethods/1234
  • this button calls the DeletePaymethod API

My issue: how to insert such a button in this page?!?!?! 
please help!

 

Link to comment
Share on other sites

  On 5/26/2021 at 12:21 PM, evolve hosting said:

Which version are you using? There was a bug in v7.10.2 (and maybe earlier) but it was fixed in 8.0 and above for the customer and admin to delete payment methods.

Expand  

The issue, AFAIK, there's on any WHMCS version: in client area, in /index.php?rp=/account/paymentmethods/xxx a "delete" button does not exist, so the user is simply not able to delete a recorded credit card...

(I've tested both 7.10.2 and 8.0.4 ... same issue on both version)

Link to comment
Share on other sites

  On 5/26/2021 at 6:33 PM, Walther said:

The issue, AFAIK, there's on any WHMCS version: in client area, in /index.php?rp=/account/paymentmethods/xxx a "delete" button does not exist, so the user is simply not able to delete a recorded credit card...

(I've tested both 7.10.2 and 8.0.4 ... same issue on both version)

Expand  

Take a look at the suggestion from @steven99 above

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