Jump to content

dpgthing

Member
  • Posts

    13
  • Joined

  • Last visited

About dpgthing

dpgthing's Achievements

Junior Member

Junior Member (1/3)

1

Reputation

  1. Scenario: There are 10 clients, each with Credit Cards on file. 8 of them have only 1 credit card on file as default payment method and the other 2 have 3 cards each on file, with 1 set as their default. They are all due on the same date. During the cron job on their due date, their cards are attempted capture and service renewed if their default card is successful. In the case of the 2 who have multiple cards on file, 1 of them, their default card FAILS and does not renew their service. Solution/Question: In the case of the multiple cards on file client who's default card failed during cron, is there a HOOK that can be written/implemented that will automatically attempt capture on their next card on file in the event that the default card FAILS during the daily cron operation? This same solution would also try their 3rd card if the 2nd card fails as well, until all cards on file have been attempted.
  2. is it possible to edit the hook to force it to attempt capture of ALL cards that are on file? example, client has 4 cards on file with 1 set as default. Standard, whmcs will only attempt capture of the default card, however, sometimes the client forgets to set their new card they used to pay the previous month as their new default. Can you have the hook attempt capture of the 2nd, 3rd, and 4th card on file if the one before it fails? This is the bane of my existence as everyday, i have to go through the unpaid invoices and manually attempt the secondary card(s) on file for the client.
  3. Steve, I just tried that, gave me an "oops...something went wrong" error on Submission of card, however, the card info DID change after a refresh...but it did not send any email.
  4. Yes, any that are more than 1 day old would work I think.
  5. Would there be a way to add an exception to the code to where it will ignore sending the email on a 'new' order? And only send email if client already exists?
  6. Awesome, thank you, it did in fact work!
  7. Hello, I'd like to get an E-Mail notification whenever a client adds a new card on file. I have been directed to use the CCUpdate Hook, however I'm not sure what code to put in for the hook to function. Please assist. <?php add_hook('CCUpdate', 1, function($vars) { // Perform hook code here... });
  8. Hello, When a customer changes their Payment method, I receive a system email alert, however, if they update their credit card or add a card to their billing profile, I do NOT get an alert. Is there a way that I could get an email alert if a client changes or adds a card to their client profile? This is critical as if they do add a card and also have a current paypal subscription, paypal subscription will charge as well as their card creating 2 payments. If they put a card on File, and I get an alert, I can go in and cancel their paypal subscription to avoid this. I'm looking for a hook code that will trigger upon any change action to client credit card and send me an email notification stating the client name at minimum, preferably a link to the client's billing profile page. Here was three response from whmcs: In the meantime, it may be possible to develop something custom to achieve this using the ClientAreaPageCreditCard hook: https://developers.whmcs.com/hooks-reference/client-area-interface/#clientareapagecreditcard Thank you!
  9. Hello, When a customer changes their Payment method, I receive a system email alert, however, if they update their credit card or add a card to their billing profile, I do NOT get an alert. Is there a way that I could get an email alert if a client changes or adds a card to their client profile? This is critical as if they do add a card and also have a current paypal subscription, paypal subscription will charge as well as their card creating 2 payments. If they put a card on File, and I get an alert, I can go in and cancel their paypal subscription to avoid this. I'm looking for a hook code that will trigger upon any change action to client credit card and send me an email notification stating the client name at minimum, preferably a link to the client's billing profile page. Here was three response from whmcs: In the meantime, it may be possible to develop something custom to achieve this using the ClientAreaPageCreditCard hook: https://developers.whmcs.com/hooks-reference/client-area-interface/#clientareapagecreditcard Thank you!
  10. Thank you! I tried the .css but it didn't work out, however, the hook, wonderful! Perfection and I thank you so very much!
  11. Hello, I'm looking to make a hook to hide the "Change Password" button on the sidebar in the client area when they view their product details. Any help?
  12. How do I set the product username equal to that of the client's email address upon the client clicking "Complete Order"? I create a custom product field requiring the client to input an email address. How do I translate this field to replace the Product username field? I've been directed to use: <?php add_hook('OverrideModuleUsernameGeneration', 1, function($vars) { // Perform hook code here... }); What goes in "perform hook code here..." to accomplish what I described above? I'm a complete noob when it comes to php script code.
  13. Hello Dev World. I must apologize upfront! I am very new to development and understand vaguely the lingo, so please take it easy on me. I've read up a little on the 2 hook functions in the subject, but I'm looking for a precise answer to my inquiry. How do I set the product username equal to that of the client's email address upon the client clicking "Complete Order"? Also, how can I change the password complexity of the generated product password? I would like it to be 10 characters to include only: 123456789aAbBcCdDeEfFgGhHjJkKmMnNpPqQrRsStTuUvVwWxXyYzZ (you'll notice I left out the 0, iI, oO, lL.) So essentially the end result of the hook function would be: Client Profile First Name, Last Name E-Mail Address Phone Number Product/Service Username = "E-Mail" Password = randomly generated 10 characters to only include letters and numbers excluding 0,iI,oO,and lL I have attached an example of a product/service which has MANUALLY input information, and instead of me having to manually input on every order, I'd like this to be done automatically as when a product is ordered. Thank you for your help in advance!
  14. Welcome to WHMCS.Community dpgthing! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×
×
  • 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