brianoz Posted January 2, 2011 Share Posted January 2, 2011 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: create payment invoice with a line for the credit payment without sending invoice important: will creating an invoice use up any credit already on the account??? add a payment to the invoice which should then send a receipt 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. 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.