WHMCS / sample-gateway-module

Sample Third Party Payment Gateway Module for WHMCS
MIT License
59 stars 94 forks source link

Is possible $params['duedate']? #3

Closed mauriciogofas closed 5 years ago

mauriciogofas commented 8 years ago

Hello, thanks for sample gateway! Is possible get the invoice due date via internal api? Like include $params['duedate']?

mattpugh commented 5 years ago

The invoice due date is not a parameter that is automatically passed into payment gateway modules at this time. However you are provided with the invoiceid parameter and can then use the Invoice model to lookup the due date. Please refer to https://classdocs.whmcs.com/7.8/WHMCS/Billing/Invoice.html for the Invoice model docs.