Facades: pos
, merchant
Overview
Bills are payment requests addressed to specific buyers. Bill line items have fixed prices, typically denominated in fiat currency.
Parameters
Parameter | Description |
---|---|
bill * | A Bill object with request parameters defined |
facade | The facade used to create it (default: merchant ) |
sign_request | Signed 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)