Jump to content
  • 0

Can You Set A Minimum Payment Amount?


Question

Posted

We want to send our users monthly invoices no matter the amount owed, so they get used to always getting an invoice from us; however, we don't actually want the user to be able to pay the invoice unless it is say for example, at least $1.00 - we don't want users paying invoices that are for $0.03 and losing money via transactions fees.

 

I notice users can also make partial payments via their accounts, so it would obviously need to apply to this as well.

 

Can this be set anywhere?

 

Thanks!

9 answers to this question

Recommended Posts

  • 0
Posted

Which gateway are you using? It would be extremely easy to modify the gateway plugin to refuse to process payment under a certain amount.

 

I had to write this into a merchant plugin i wrote on the weekend as that gateway had a minimum $1.00 AUD transaction total.

 

If you let me know which one I'll have a look at it for you.

 

I'd probably modify your invoice too so it perhaps watermarked with "payment not required at this time" or something too.

  • 0
Posted

Which gateway are you using? It would be extremely easy to modify the gateway plugin to refuse to process payment under a certain amount.

 

I had to write this into a merchant plugin i wrote on the weekend as that gateway had a minimum $1.00 AUD transaction total.

 

If you let me know which one I'll have a look at it for you.

 

I'd probably modify your invoice too so it perhaps watermarked with "payment not required at this time" or something too.

 

At the moment we will just be using Paypal.

  • 0
Posted

I haven't used the Paypal gateway and I've only just had a quick glance at the code.

 

But you could with the help of the developer documentation do this quite easily, if you open up:

 

/components/gateways/nonmerchant/paypal_payments_standard/paypal_payments_standard.php

if ($amount < 1 && $this->currency = "AUD") || ($amount < 1.20 && $this->currency = "USD") {
    $this->Input->setErrors($this->getCommonError("unsupported")); 
}

You could probably use a more descriptive error though in this case, but again it's all in the docs.

 

Completely untested, but the above should bring an abrupt end to payments for amounts under $1.00 AUD or $1.20 USD

 

References: 

  • 0
Posted

 

I haven't used the Paypal gateway and I've only just had a quick glance at the code.

 

But you could with the help of the developer documentation do this quite easily, if you open up:

 

/components/gateways/nonmerchant/paypal_payments_standard/paypal_payments_standard.php

if ($amount < 1 && $this->currency = "AUD") || ($amount < 1.20 && $this->currency = "USD") {
    $this->Input->setErrors($this->getCommonError("unsupported")); 
}

You could probably use a more descriptive error though in this case, but again it's all in the docs.

 

Completely untested, but the above should bring an abrupt end to payments for amounts under $1.00 AUD or $1.20 USD

 

References: 

 

 

TY very much for that - will have to try it out! :)

  • 0
Posted

 

I haven't used the Paypal gateway and I've only just had a quick glance at the code.

 

But you could with the help of the developer documentation do this quite easily, if you open up:

 

/components/gateways/nonmerchant/paypal_payments_standard/paypal_payments_standard.php

if ($amount < 1 && $this->currency = "AUD") || ($amount < 1.20 && $this->currency = "USD") {
    $this->Input->setErrors($this->getCommonError("unsupported")); 
}

You could probably use a more descriptive error though in this case, but again it's all in the docs.

 

Completely untested, but the above should bring an abrupt end to payments for amounts under $1.00 AUD or $1.20 USD

 

References: 

 

 

Just got around to doing this - where do I put that code exactly?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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.

Loading...
×
×
  • Create New...