stormrider Posted August 6, 2007 Share Posted August 6, 2007 Hello, How can i mark an invoice paid using SQL? Should i only change the status to Paid or do i have to do anything else? Thanks, Fernando. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted August 6, 2007 WHMCS CEO Share Posted August 6, 2007 If you do that, none of the operations that occur when marking an invoice paid will occur. You should use the API if you want that to happen. Matt 0 Quote Link to comment Share on other sites More sharing options...
stormrider Posted August 7, 2007 Author Share Posted August 7, 2007 Hello Matt, Thanks for your answer. I have found this on the manual: Mark Invoice Paid $query_string .= "action=addinvoicepayment&invoiceid=1&transid=453685410&amount=40&gateway=paypalinvoices"; Server Create $query_string .= "action=servercreate&accountid=1"; But, will this send the payment confirmation and welcome e-mail to the user? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
BionHostStan Posted August 9, 2007 Share Posted August 9, 2007 just wonderin.. what r u using this for? 0 Quote Link to comment Share on other sites More sharing options...
stormrider Posted August 9, 2007 Author Share Posted August 9, 2007 Hello, I have two payment gateways. Both of them gives me a URL to view which payment where made. I'm trying to automatically confirm payments and, if the account wasn't created, create it. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted August 9, 2007 WHMCS CEO Share Posted August 9, 2007 Just use the API to mark the invoice paid. WHMCS will handle the rest. Matt 0 Quote Link to comment Share on other sites More sharing options...
stormrider Posted August 14, 2007 Author Share Posted August 14, 2007 Hello Matt, What's the right format to the amount? I tried 29.40 but it only applied 29 to the user's invoice. 0 Quote Link to comment Share on other sites More sharing options...
stormrider Posted August 18, 2007 Author Share Posted August 18, 2007 Matt, Is there a way to use decimal numbers? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted August 20, 2007 WHMCS CEO Share Posted August 20, 2007 It should be possible to include decimal numbers. You might need to urlencode it I guess. Matt 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.