Walther Posted May 26, 2021 Share Posted May 26, 2021 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! 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted May 26, 2021 Share Posted May 26, 2021 (edited) 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. Edited May 26, 2021 by evolve hosting 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted May 26, 2021 Share Posted May 26, 2021 Settings -> Security tab -> Allow Client Pay Method Removal checked should do the trick. 1 Quote Link to comment Share on other sites More sharing options...
Walther Posted May 26, 2021 Author Share Posted May 26, 2021 6 hours ago, 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. 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) 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted May 26, 2021 Share Posted May 26, 2021 3 minutes ago, 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) Take a look at the suggestion from @steven99 above 0 Quote Link to comment Share on other sites More sharing options...
Walther Posted May 26, 2021 Author Share Posted May 26, 2021 14 minutes ago, steven99 said: Settings -> Security tab -> Allow Client Pay Method Removal checked should do the trick. You got it!!!!! Thanks! (But why WHMCS configuration parameters are randomly scattered around?!?!?!?! 😮 ) 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted May 26, 2021 Share Posted May 26, 2021 How are they randomly scattered around? General / overall settings are in the settings area. Everything else is covered in their own areas from products and servers to domain registrars. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.