DynamicQrRequest

@Serializable
data class DynamicQrRequest(val merchantName: String, val refNo: String, val amount: String, val trxCode: String, val cpi: String)

Dynamic QR request

Parameters

merchantName

Name of the Company/M-Pesa Merchant Name. Sample: Safaricom LTD

refNo

Transaction Reference. Sample: rf38f04

amount

The total amount for the sale/transaction. Sample: 20000

trxCode

Transaction Type. The supported types are: BG: Pay Merchant (Buy Goods). WA: Withdraw Cash at Agent Till. PB: Paybill or Business number. SM: Send Money(Mobile number) SB: Sent to Business. Business number CPI in MSISDN format.

cpi

Credit Party Identifier. Can be a Mobile Number, Business Number, Agent Till, PayBill or Business number, or Merchant Buy Goods. Sample: 17408

Constructors

Link copied to clipboard
constructor(merchantName: String, refNo: String, amount: String, transactionType: DynamicQrTransactionType, cpi: String)
constructor(merchantName: String, refNo: String, amount: String, trxCode: String, cpi: String)

Properties

Link copied to clipboard
@SerialName(value = "Amount")
val amount: String
Link copied to clipboard
@SerialName(value = "CPI")
val cpi: String
Link copied to clipboard
@SerialName(value = "MerchantName")
val merchantName: String
Link copied to clipboard
@SerialName(value = "RefNo")
val refNo: String
Link copied to clipboard
@SerialName(value = "TrxCode")
val trxCode: String