Payment Details

Create an instance of the Payment class with the following items:

final Payment payment = 
  new Payment(amount,
  transactionRef, 
  "MOBILE",
  terminalId,
  "CRD",
  currency,
  orderId);
Payment payment = Payment( 100,
Random().nextInt(1000).toString(),
Random().nextInt(1000).toString(),
"food",
"KES",
"Buying food Items");

Amount

The amount would be sent to us in the double currency format. i.e you will have to multiply the amount by 100. An example is if the value of apple fruit is 99.90 (Ninety-nine Shillings and ninety cents) you will have to send it to us as 9990

Order Id

Merchant's orderId for the payment item, similar to receipt number, duplicates allowed.

📘

Split Payments

You can use the same order id and different transaction references to create split payments

Transaction Reference

A unique identifier of the transaction on the merchant's side – maximum 15 characters

❗️

Duplicate transaction reference

If a transaction reference is duplicated the transaction will be rejected.

Payment Item

This is what the customer is paying for e.g Food

Currency Code

The ISO currency code e.g. KES

Narration

This is a description of what the customer is paying for e.g Four honey glazed pieces of chicken wings