Facades: pos
, merchant
Overview
Create an invoice.
Parameters
Parameter | Description |
---|---|
Invoice | BitPay generated Invoice object. |
Example
Note
In this example, we assume that a Client has already been initialized and assigned to the
bitpay
variable.
Invoice invoice = new Invoice(100.0, Currency.USD);
invoice = bitpay.createInvoice(invoice);
Invoice invoice = new Invoice(100.0, Currency.USD);
invoice = bitpay.createInvoice(invoice, Facade.POS, false);