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