MadelineProtoDocs/docs/TD_docs/constructors/invoice.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

1.1 KiB

title description image
invoice Goods invoice https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: invoice

Back to constructors index

Goods invoice

Attributes:

Name Type Required Description
currency string Yes ISO 4217 currency code
prices Array of labeledPrice Yes List of objects used to calculate total price
is_test Bool Yes True, if payment is test
need_name Bool Yes True, if user's name is needed for payment
need_phone_number Bool Yes True, if user's phone number is needed for payment
need_email Bool Yes True, if user's email is needed for payment
need_shipping_address Bool Yes True, if user's shipping address is needed for payment
is_flexible Bool Yes True, if total price depends on shipping method

Type: Invoice