PHPackages                             whapplepaysdk/whapplepay - 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. whapplepaysdk/whapplepay

ActiveLibrary[Payment Processing](/categories/payments)

whapplepaysdk/whapplepay
========================

Empower your platform to seamlessly accept Whapple Pay payments with the Whapple Pay SDK. This comprehensive software development kit offers developers a robust solution for integrating Whapple Pay payment capabilities into their applications, ensuring a smooth and secure payment experience for users. Simplify payment processing and enhance user convenience with the Whapple Pay SDK, designed to streamline payment workflows and deliver exceptional payment acceptance functionalities.

1.0.0(2y ago)09MITPHPPHP ^8.2.4

Since May 8Pushed 2y agoCompare

[ Source](https://github.com/WhapplePay/Whapplepay-Laravel-wrapper)[ Packagist](https://packagist.org/packages/whapplepaysdk/whapplepay)[ RSS](/packages/whapplepaysdk-whapplepay/feed)WikiDiscussions main Synced 1mo ago

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

### WhapplePay SDK Documentation

[](#whapplepay-sdk-documentation)

#### Introduction

[](#introduction)

Welcome to the WhapplePay SDK documentation. This SDK allows seamless integration with the WhapplePay payment gateway, enabling developers to process payments and withdrawals in their applications.

#### Installation

[](#installation)

To use the WhapplePay SDK in your project, follow these steps:

1. Install the SDK package using Composer: ```
    composer require vendor/whapplepay-sdk:^1.0.0
    ```
2. Include the SDK in your PHP files: ```
    use Whapplepay\WhapplePaySDK;
    ```

#### Configuration

[](#configuration)

Before using the WhapplePay SDK, make sure to set the following environment variables in your `.env` file:

Base URl =

```
WHAPPLEPAY_API_URL=https://api.whapplepay.com/
WHAPPLEPAY_PAYMENT_METHOD=MobileMoney
WHAPPLEPAY_SUCCESS_URL=http://example.com/success
WHAPPLEPAY_CANCEL_URL=http://example.com/cancel
WHAPPLEPAY_CLIENT_ID=your_whapplepay_client_id
WHAPPLEPAY_CLIENT_SECRET=your_whapplepay_client_secret
CURRENCY=XAF

```

#### Usage

[](#usage)

##### Initialization

[](#initialization)

Instantiate the WhapplePaySDK class to begin using the SDK:

```
$whapplePay = new WhapplePaySDK();
```

##### Process Payment

[](#process-payment)

To process a payment using the WhapplePay SDK, use the `processPayment` method:

```
// Process Payment and Handle Response
$response = $whapplePay->processPayment($amount, $currency, $paymentMethod, $clientId, $clientSecret, $phoneNumber);

// Check if the payment was successful
if (isset($response['transaction']) && isset($response['status']) && $response['status'] == 200) {
    $transaction = $response['transaction'];

    // Display payment details
    echo "Payment Details:\n";
    echo "Transaction ID: " . $transaction['id'] . "\n";
    echo "Amount: " . $transaction['total'] . " " . $transaction['currency'] . "\n";
    echo "Status: " . $transaction['status'] . "\n";

    // Additional processing or actions based on the payment success
    // For example, update user balance, send confirmation email, etc.
    // Your code here...

    // Display success message
    echo "Payment successful!\n";
} else {
    // Handle payment failure or other errors
    if (isset($response['error'])) {
        echo "Error: " . $response['error'] . "\n";
    } else {
        echo "Payment failed!\n";
    }
}
```

Parameters:

- `$amount`: The amount of the payment.
- `$currency`: The currency of the payment (e.g., "F.CFA", "NGN").
- `$paymentMethod`: The payment method (e.g., "WhapplpePay", "MobileMoney").
- `$clientId`: Your client ID for authentication.
- `$clientSecret`: Your client secret for authentication.
- `$phoneNumber`: The phone number for MobileMoney payments.

##### Withdraw Money

[](#withdraw-money)

To initiate a withdrawal using the WhapplePay SDK, use the `withdrawMoney` method:

```
$response = $whapplePay->withdrawMoney($amount, $currency, $withdrawMethod, $clientId, $clientSecret);
```

Parameters:

- `$amount`: The amount to withdraw.
- `$currency`: The currency of the withdrawal.
- `$withdrawMethod`: The withdrawal method.
- `$clientId`: Your client ID for authentication.
- `$clientSecret`: Your client secret for authentication.

#### Supported Payment Methods

[](#supported-payment-methods)

The following table shows the supported payment methods and their implementation status for both deposit and withdrawal:

Payment MethodDeposit ImplementedWithdraw ImplementedWhapplePay✅❌MobileMoney✅❌PayPal❌❌Bank Transfer❌❌#### Errors Handling

[](#errors-handling)

In case of any errors during API calls, the SDK returns an error message. Handle these errors appropriately in your application.

#### Versioning

[](#versioning)

The WhapplePay SDK follows semantic versioning. Ensure compatibility by specifying the desired version when installing the package.

#### Support and Feedback

[](#support-and-feedback)

For support or feedback regarding the WhapplePay SDK, contact our support team at .

#### License

[](#license)

The WhapplePay SDK is licensed under the MIT License. Refer to the LICENSE file for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

732d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c07730f321f14105b5fef72abbf4b0cef81b5de4c7d5fe9fea727203b9c0d914?d=identicon)[Ngwangshalom](/maintainers/Ngwangshalom)

---

Top Contributors

[![Ngwangshalom](https://avatars.githubusercontent.com/u/94115051?v=4)](https://github.com/Ngwangshalom "Ngwangshalom (5 commits)")

### Embed Badge

![Health badge](/badges/whapplepaysdk-whapplepay/health.svg)

```
[![Health](https://phpackages.com/badges/whapplepaysdk-whapplepay/health.svg)](https://phpackages.com/packages/whapplepaysdk-whapplepay)
```

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
