Skip to main content

Klasha Integration

Introduction#

Klasha provides frictionless cross-border payment solutions for merchants. Klasha empowers online payments in Africa, offering secure and convenient financial solutions. Follow this guide to integrate Klasha Payment Gateway.


Supported Countries#

  • Kenya πŸ‡°πŸ‡ͺ
  • Nigeria πŸ‡³πŸ‡¬
  • South Africa πŸ‡ΏπŸ‡¦

Available Payment Methods#

Payment TypePayment Method KeyCurrencyStatusSandbox Availability
Credit CardsKLASHA_CREDIT_CARDKES,ZARβœ…βœ…
Bank TransferKLASHA_BANK_TRANSFERNGNβœ…βœ…
MPesaKLASHA_MPESAKESβœ…βœ…

Miscellaneous Details#

  • Webhook Settings : Paste the provided Webhook URL from the PortOne Admin Dashboard into the Klasha portal's webhook configuration section to set up your account's Webhook URL.
  • Webhook Key Settings : Use the PortOne key as the Webhook Key in the Klasha Portal.
  • Refunds cannot be initialized from the PortOne Dashboard.

Sandbox#

Credentials#

KeyValue
Merchant private keyp1II2wrbFTjaXN5nTCYmTac+HB7/IV9ASfPlkALurKYW+Dt29xNjPAzYnFQ2Sg+0
Merchant public keyxulVd8LHrTDwGHC/PagMxnCZ7+nqkYiPtRBTd3DSE5ZFKfs3QCy1KVliyDauPKZJ
Encryption key6JGkQjskay8RDDlU/H+/+vu8R27KTXCN0qG/c07xJug=
New encryption key6JGkQjskay8RDDlU/H+/+vu8

Klasha Sandbox Dashboard


Test cards data#

Card numberCurrencyValid throughCVVPinOTP
4084084084084081KES01/25408--
507850785078507812KES01/250811111-
5060666666666666666KES01/251231234123456
4084080000000409KES01/25000--
5399838383838381ZAR10/314703310123456
4187427415564246ZAR09/32828--

Use following values in embedded JS code to pay via Klasha channel#

"pmt_channel": "KLASHA",
"pmt_method": { Any of above given payment method keys },