PHPackages                             waldson/omnipay-rede-rest-api - 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. waldson/omnipay-rede-rest-api

ActiveLibrary[Payment Processing](/categories/payments)

waldson/omnipay-rede-rest-api
=============================

Rede driver for the Omnipay payment processing library

1.0.3(8y ago)116.5k[1 issues](https://github.com/waldson/omnipay-rede-rest-api/issues)MITPHP

Since Nov 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/waldson/omnipay-rede-rest-api)[ Packagist](https://packagist.org/packages/waldson/omnipay-rede-rest-api)[ RSS](/packages/waldson-omnipay-rede-rest-api/feed)WikiDiscussions master Synced 1mo ago

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

Omnipay: Rede
=============

[](#omnipay-rede)

**[Rede Rest API](https://www.userede.com.br/desenvolvedores)'s driver for the Omnipay PHP payment processing library**

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

[](#installation)

This library is installed via [Composer](http://getcomposer.org/). To install it, call:

```
composer require waldson/omnipay-rede-rest-api

```

Supported Methods
-----------------

[](#supported-methods)

The following methods are supported by this package:

- `authorize`
- `capture`
- `purchase` (`authorize` + `catpure` in a single step)
- `refund`
- `fetchTransaction`

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

[](#basic-usage)

The following gateway is provided by this package:

- Rede

### Example

[](#example)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Rede');
$gateway->setMerchantId($yourCV); // Filiação
$gateway->setMerchantKey($yourToken); // Token

$card     = array('number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2030', 'cvv' => '123', 'name' => 'Holder name');
$response = $gateway->purchase(array('amount' => '10.00', 'reference' => '1', 'card' => $card))->send(); //or authorize(...)

if ($response->isSuccessful()) {
    // payment was successful: update database
    $transactionId = $response->getTransactionId();

    //with transactionId you can fetch...
    $transactionInfo = $gateway->fetchTransaction(['transactionId' => $transactionId]); //you can pass 'reference' too

    //refund...
    $response = $gateway->refund(['transactionId' => $transactionId, 'amount' => '10.00']);

    //or capture (don't work with purchase, you can only capture authorized requests)
    $response = $gateway->capture(['transactionId' => $transactionId, 'amount' => '10.00']);

} else {
    // payment failed: display message to customer
    $errorMessage = $response->getMessage();
    $errorCode    = $response->getCode();
    ...
}
```

Support
-------

[](#support)

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

*PS: **Rede** is a brazillian payment gateway.*

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

4

Last Release

3104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1339cbf6d87d02038fcec2fb6ab0471a5b59144b88fb8d6e7afafb7ac015dad3?d=identicon)[waldson](/maintainers/waldson)

---

Top Contributors

[![waldson](https://avatars.githubusercontent.com/u/160668?v=4)](https://github.com/waldson "waldson (13 commits)")

---

Tags

gatewayintegracaoomnipaypagamentopaymentphpredepaymentgatewaypaymerchantomnipayrede

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/waldson-omnipay-rede-rest-api/health.svg)

```
[![Health](https://phpackages.com/badges/waldson-omnipay-rede-rest-api/health.svg)](https://phpackages.com/packages/waldson-omnipay-rede-rest-api)
```

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1017.2k](/packages/sudiptpa-omnipay-nabtransact)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

154.6k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

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