ucdavis / payments

Accept and process credit card payments on campus
MIT License
2 stars 3 forks source link

$0 invoices #395

Closed srkirkland closed 9 months ago

srkirkland commented 9 months ago

Invoices can be $0 because of coupons. It's not obvious from the API if an invoice is going to result in $0 or not, so I don't think the burden should be on API clients for handling this.

So I propose:

  1. If an invoice is created which results in $0 total, it should automatically be marked as paid
  2. If a user views a $0 invoice and clicks pay now, it shouldn't take them to cybersource, it should just mark as paid.

In both cases, all the normal webhooks and whatever else should take place as if it was a normally paid invoice.