Create Bill

Facades: pos, merchant

Overview

Bills are payment requests addressed to specific buyers. Bill line items have fixed prices, typically denominated in fiat currency.

Parameters

ParameterDescription
bill *A Bill object with request parameters defined
facadeThe facade used to create it (default: merchant)
sign_requestSigned request (default: true)

Example

📘

Note

In this example, we assume that a Client has already been initialized and assigned to the bitpay variable.

bill = Bill()
bill.name = 'someName'
bill.email = '[email protected]'
bill.address1 = 'SomeAddress'
bill.city = 'MyCity'
# ...

bitpay.create_bill(bill)
bill = Bill()
bill.name = 'someName'
bill.email = '[email protected]'
bill.address1 = 'SomeAddress'
bill.city = 'MyCity'
# ...

bitpay.create_bill(bill, Facade.POS, False)