Jump to content

Minimum invoice amount ?


Si

Recommended Posts

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 by Si
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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