PHPackages                             oneclickdz/ocpay-php-sdk - 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. oneclickdz/ocpay-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

oneclickdz/ocpay-php-sdk
========================

Official PHP SDK for OneClickDz OCPay payment gateway

24PHP

Since Nov 17Pushed 5mo agoCompare

[ Source](https://github.com/oneclickdz/ocpay-php-sdk)[ Packagist](https://packagist.org/packages/oneclickdz/ocpay-php-sdk)[ RSS](/packages/oneclickdz-ocpay-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

OneClickDz OCPay PHP SDK
========================

[](#oneclickdz-ocpay-php-sdk)

[![PHP Version](https://camo.githubusercontent.com/f870cee2a2e2a442c6b62c8bf79f45ec0ce794dc5af13834902518c9107230f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312532422d626c75652e737667)](https://www.php.net/)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Packagist](https://camo.githubusercontent.com/28ba15c36c1fdcb8440cdd751858ba805c158fe16c3dbaab4cb63c395dc8ac66/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d6f6e65636c69636b647a2532466f637061792d2d7068702d2d73646b2d626c75652e737667)](https://packagist.org/packages/oneclickdz/ocpay-php-sdk)

Official PHP SDK for integrating OneClickDz OCPay payment gateway. This SDK provides a simple and intuitive interface for creating payment links and checking payment status.

Features
--------

[](#features)

- ✅ **Simple API** - Clean, intuitive interface
- ✅ **Type Safety** - Full PHP 8.1+ type hints and return types
- ✅ **PSR-4 Autoloading** - Composer-ready structure
- ✅ **Comprehensive Documentation** - Full PHPDoc annotations
- ✅ **Error Handling** - Custom exceptions for different error types
- ✅ **Modern PHP** - Uses latest PHP features and best practices
- ✅ **Guzzle HTTP Client** - Reliable HTTP communication

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

[](#requirements)

- PHP 8.1 or higher
- Composer
- `ext-json` extension
- `ext-curl` extension

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

[](#installation)

Install via Composer:

```
composer require oneclickdz/ocpay-php-sdk
```

Or add to your `composer.json`:

```
{
    "require": {
        "oneclickdz/ocpay-php-sdk": "^1.0"
    }
}
```

Quick Start
-----------

[](#quick-start)

### 1. Initialize the SDK

[](#1-initialize-the-sdk)

```
