M-Pesa Payments

M-Pesa Payments

Accept Mpesa payments on your Vendure store.

npm install vendure-mpesa-plugin
Latest version0.0.12
Compatibility
Last publishedFeb 7, 2024
Vendure Community

Vendure Mpesa Plugin

GitHub Actions Workflow Status   NPM Version

Accept Mpesa payments on your Vendure store.

Installation

Usage

  1. Add the MpesaPlugin to your VendureConfig plugins array.
  1. Start the server and navigate to Settings > Payment methods. Add a new payment method, selecting Lipa na Mpesa Online as the handler.

Note: Select the 'Check whether Mpesa supports the payment' eligibility checker when creating the payment method.

  1. Calling the addPaymentToOrder mutation on the storefront with the corresponing payment method code will initiate an STK push to the customer's phone.

  2. Call the verifyMpesaTransaction mutation periodically on the storefront to verify the transaction status.

Reference