PHPackages                             adnane-ka/omnipay-paddle - 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. adnane-ka/omnipay-paddle

ActiveLibrary

adnane-ka/omnipay-paddle
========================

1.2(1y ago)173MITPHP

Since Sep 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/adnane-ka/omnipay-paddle)[ Packagist](https://packagist.org/packages/adnane-ka/omnipay-paddle)[ RSS](/packages/adnane-ka-omnipay-paddle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

Omnipay: paddle
===============

[](#omnipay-paddle)

**Paddle payments gateway for Omnipay payment processing library**

[![Build Status](https://camo.githubusercontent.com/38237b4a2ce8784baf696a142c1ec464e433498feb4914477b2312af139ecdd6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f61646e616e652d6b612f6f6d6e697061792d706164646c652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.com/adnane-ka/omnipay-paddle)[![Latest Stable Version](https://camo.githubusercontent.com/292bee121910475f205925cc39949211b12bc95d6d50e561a91fa838ba58cfc1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61646e616e652d6b612f6f6d6e697061792d706164646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adnane-ka/omnipay-paddle)[![Total Downloads](https://camo.githubusercontent.com/edf36ccb05fad7b39992cb59bad4f3d3b0a695c8efb886833e70b28131795e6a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61646e616e652d6b612f6f6d6e697061792d706164646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adnane-ka/omnipay-paddle)

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Tap support for Omnipay.

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

[](#installation)

```
composer require adnane-ka/omnipay-paddle
```

Basic Usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

- Paddle

This package ineteracts with [paddle's API](https://paddle.vn/lap-trinh-cong-thanh-toan.html).

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)repository.

Flow
----

[](#flow)

1. Configure gateway
2. Create a draft transaction
3. Display an overlay checkout form for the draft transaction
4. Proccess Payment by gateway
5. Redirect to proccess payment on website

Example usage
-------------

[](#example-usage)

### Configuration

[](#configuration)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Paddle');
$gateway->setApiKey('YOUR_API_KEY');
$gateway->setTestMode(true);
```

### Creating a Purchase

[](#creating-a-purchase)

```
$response = $gateway->purchase([
    'amount' => 5.00 * 100, // in cents
    'checkoutUrl' => 'http://localhost:8000/checkout.php', // where you'll display the overlay / inline checkout
    'returnUrl' => 'http://localhost:8000/complete.php',  // where you'll be proccessing the payment
    'currency' => 'USD'
])->send();

if ($response->isRedirect()) {
    // The transaction is created as a draft and you're ready to be redirected to checkout
    $response->redirect();
} else {
    // An error occured
    echo $response->getMessage();
}
```

### Checkout

[](#checkout)

```
>

    Paddle Checkout

    Paddle.Environment.set("sandbox");
    Paddle.Initialize({
      token: "test_4c116d8b4cc5cd9756de9765db9", // Your public API key
    });
    Paddle.Checkout.open({
      transactionId: "", // Locate this from request
      settings: {
        successUrl: "" // Locate this from request
      }
    });

```

### Completing Purchase

[](#completing-purchase)

When users submit the checkout form after they pay using the overlay checkout, they'll be redirected to `returnUrl` where you'll be proccessing the payment:

```
$response = $gateway->completePurchase([
    'transactionId' => $_GET['transactionId'] // sent in request or retrieved from backend
])->send();

if($response->isSuccessful()){
    // Payment was successful and charge was captured
    // $response->getData()
    echo $response->getTransactionReference(); // payment reference
}else{
    // Charge was not captured and payment failed
    echo $response->getMessage();
}
```

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/adnane-ka/omnipay-tap/issues), or better yet, fork the library and submit a pull request.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Every ~0 days

Total

3

Last Release

613d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32fd3105946c7423fd448a5030df5993ae5ceca855de748881f30d5a17928cb3?d=identicon)[adnanekadri](/maintainers/adnanekadri)

---

Top Contributors

[![adnane-ka](https://avatars.githubusercontent.com/u/74255401?v=4)](https://github.com/adnane-ka "adnane-ka (6 commits)")

### Embed Badge

![Health badge](/badges/adnane-ka-omnipay-paddle/health.svg)

```
[![Health](https://phpackages.com/badges/adnane-ka-omnipay-paddle/health.svg)](https://phpackages.com/packages/adnane-ka-omnipay-paddle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[j0k3r/graby

Graby helps you extract article content from web pages

384349.6k2](/packages/j0k3r-graby)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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