DynamicQrRequest

constructor(merchantName: String, refNo: String, amount: String, transactionType: DynamicQrTransactionType, cpi: String)

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

transactionType
cpi

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


constructor(merchantName: String, refNo: String, amount: String, trxCode: String, cpi: String)

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