libtd-ktx / kotlinx.telegram.extensions / MessageKtx / sendPaymentForm
sendPaymentForm
open suspend fun Message.sendPaymentForm(chatId: Long, orderInfoId: String?, shippingOptionId: String?, credentials: InputCredentials?): PaymentResult
Suspend function, which sends a filled-out payment form to the bot for final verification.
Parameters
chatId - Chat identifier of the Invoice message.
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 TdApi.PaymentResult Contains the result of a payment request.