Merchant Go Live on Mpesa


In order to go LIVE with MPESA through peach payments, you need to provide us with the below credentials. You would have gotten these from MPESA during onboarding.


C2B/ Lipa na M-PESA API


Config Value

Description

Prod-Name

Your production name that is assigned to you by M-PESA

PartyB/Shortcode

The Short Code of the Organisation receiving funds

Passkey

Required for the base64 encoding that generates the "Password" for the transaction

Consumer Key

For the generation of the OAuth access token

Consumer Secret

For the generation of the OAuth access token

 

B2C/ Refund API


Config Value

Description

Initiator Name

The username used to authenticate the transaction request

SecurityCredential

Validates transaction on M-PESA core system

PartyA/Shortcode

Organization's shortcode

Consumer Key

For the generation of the OAuth access token

Consumer Secret

For the generation of the OAuth access token

 

If you dont have M-pesa Credentials, you can read the below that gives information on how this can be done.

  1. Sign up for a developer account on Daraja https://developer.safaricom.co.ke/ . This is Safaricoms Developer portal
  2. Click on Go live and provide the following details
    1. Verification Type - Shortcode
    2. Organization Shortcode - Your Mpesa Paybill Number
    3. Organization Name - Your Mpesa Paybill Name
    4. Mpesa Username - Mpesa username that you use when logging in to Mpesa portal


  3. You will receive an OTP in the phone number used in the M-pesa Portal attached your username used above.

  4. Select Lipa na Mpesa Production for STK Push and B2C For refunds with your B2C shortcode and you will be ready to go live.

  5. To get the Consumer Key and Consumer Secret,click on My Apps and select the app names as per your paybill number

  6. Mpesa will share the passkey on your email once they have approved your application on their end