InvoiceLinkCreateOptions Interface
Properties
maxTipAmount number
The maximum accepted amount for tips in the *smallest units* of the currency (integer, **not** float). For example, for a maximum tip of
See the codeneedEmail boolean
Pass *true*, if you require the user's email address to complete the order
See the codeneedName boolean
Pass *true*, if you require the user's full name to complete the order
See the codeneedPhoneNumber boolean
Pass *true*, if you require the user's phone number to complete the order
See the codeneedShippingAddress boolean
Pass *true*, if you require the user's shipping address to complete the order
See the codepayload string
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
See the codephotoUrl string
URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.
See the codeprices
Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)
See the codeproviderData string
JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.
See the codeproviderToken string
Payments provider token, obtained via [@BotFather](https://t.me/botfather)
See the codesendEmailToProvider boolean
Pass *true*, if user's email address should be sent to provider
See the codesendPhoneNumberToProvider boolean
Pass *true*, if user's phone number should be sent to provider
See the codesuggestedTipAmounts
An array of suggested amounts of tip in the *smallest units* of the currency (integer, **not** float). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed *maxTipAmount*.
See the code