-
Notifications
You must be signed in to change notification settings - Fork 11
send payment form
Alexey Kravtsov edited this page May 19, 2020
·
1 revision
libtd-ktx / kotlinx.telegram.coroutines / sendPaymentForm
suspend fun
TelegramFlow
.sendPaymentForm(chatId:
Long
, messageId:
Long
, orderInfoId:
String
?, shippingOptionId:
String
?, credentials:
InputCredentials
?):
PaymentResult
Suspend function, which sends a filled-out payment form to the bot for final verification.
chatId
- Chat identifier of the Invoice message.
messageId
- Message identifier.
orderInfoId
- Identifier returned by ValidateOrderInfo, or an empty string.
shippingOptionId
- Identifier of a chosen shipping option, if applicable.
credentials
- The credentials chosen by user for payment.
Return PaymentResult Contains the result of a payment request.