PHPackages                             salymdev/moshipay-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. salymdev/moshipay-php

ActiveLibrary[Payment Processing](/categories/payments)

salymdev/moshipay-php
=====================

Official PHP SDK for integrating merchant systems with the MoshiPay payment gateway.

v0.1.0(1mo ago)10MITPHPPHP ^8.1

Since Jul 9Pushed 1mo agoCompare

[ Source](https://github.com/devmpemba/MoshiPayPhpSdk)[ Packagist](https://packagist.org/packages/salymdev/moshipay-php)[ RSS](/packages/salymdev-moshipay-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

MoshiPay PHP SDK
================

[](#moshipay-php-sdk)

Production-ready PHP SDK for accepting payments through the MoshiPay payment gateway.

The SDK provides:

- Mobile money payment creation
- Card payment creation with redirect and cancel URLs
- Payment status lookup
- Idempotency support for payment creation
- Webhook signature verification and JSON parsing
- Typed exceptions for validation and API errors

Requirements
------------

[](#requirements)

- PHP 8.1 or newer
- PHP `curl` extension
- PHP `json` extension
- Composer

Installation
------------

[](#installation)

```
composer require salymdev/moshipay-php
```

Configuration
-------------

[](#configuration)

Store credentials in environment variables. Do not hard-code API keys, API secrets, or webhook secrets in source code.

```
MOSHIPAY_API_KEY=your_api_key
MOSHIPAY_API_SECRET=your_api_secret
MOSHIPAY_ENV=sandbox
```

Create a client for sandbox or live payments:

```
