Create an Invoice

Facades: pos, merchant

Overview

Create an invoice.

Parameters

ParameterDescription
InvoiceBitPay 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);