Si Posted February 1, 2017 Share Posted February 1, 2017 (edited) When overage invoicing runs, often it creates small invoice amounts such as 0.17 which is too little for Stripe to process and simply lines the pockets of PayPal. Is there a way to create a minimum invoice amount, or how do others deal with this? I know I can add them to the next invoice in automation settings, but if the customer hasn't another invoice for a year, that's a long time running on overages without feeling the need to make payment. (Let alone the accountability of it later on when they are added to an invoice almost a year later). Edited February 1, 2017 by Si 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted February 2, 2017 Share Posted February 2, 2017 We use the following hook to cancel any invoice under the amount defined at $MIN_AMOUNT. It also adds a note to the invoice and still sends it the customer. We like our customers to know that they are just over but not paying for it. This is saved as /includes/hooks/cancel-small-invoices.php ** Was unable to paste it directly - thanks CloudFlare. So attached it instead. cancel-small-invoices.pdf 0 Quote Link to comment Share on other sites More sharing options...
Si Posted February 2, 2017 Author Share Posted February 2, 2017 Great job thank you so much. When I uploaded it, all I got on my site were blank pages. However, I did a hook debug and found that one of the } on line 21 was not needed. I deleted it and pages came back, no errors. I've yet to test it but it definitely looks like it will do the job. Really appreciate this. 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.