Jump to content

API addcredit function and sending of receipt for credit


brianoz

Recommended Posts

I want to use addcredit to add credit to a user's account when they send a transfer to our bank account. That is, if they include a customer number code with the transfer, it will automatically credit their account when the bank notifies us of the transfer.

 

Does the API call for "addcredit" send a receipt automatically? If not, does anyone have a code fragment to send a receipt?

 

Off the top of my head, without too much study, I'm assuming the pseudo code sequence would be something like:

 

  1. create payment invoice with a line for the credit payment without sending invoice
  2. important: will creating an invoice use up any credit already on the account???
  3. add a payment to the invoice which should then send a receipt
  4. add credit to WHMCS (has to be done last so invoice doesn't use up credit)

 

 

Would much value comments/ideas from anyone who's gone down this path already ... couldn't find anything in the wiki after much searching.

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