PHPackages                             codegidi/globalpay - 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. codegidi/globalpay

ActiveProject[Payment Processing](/categories/payments)

codegidi/globalpay
==================

Globalpay PHP library composer

091PHP

Since Jan 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/codegidi/globalpay_php)[ Packagist](https://packagist.org/packages/codegidi/globalpay)[ RSS](/packages/codegidi-globalpay/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Globalpay\_PHP\_script
======================

[](#globalpay_php_script)

Globalpay PHP is a library for using the \[Globalpay\] API for PHP

### Installing

[](#installing)

composer require codegidi/globalpay

### Usage

[](#usage)

- The steps for carrying out a transaction is as follows:
- 1. Get an access token by calling the Client Authorisation method
- 2. Use the access\_token to send initiate your transaction by calling the Transaction initiaion method
- 3. Redirect to GlobalPay transaction interface using the redirectUri retured in the Transaction initiation call
- 4. After transaction has been done, you will be redirected to the provided redirectUrl provided with the transactionReference as a querystring
- 5. Validate the result by using the Retrieve transaction call

#### Client Authentication

[](#client-authentication)

```
require_once __DIR__ . '/../vendor/autoload.php';
use GlobalPay\Authentication;

$clientAuth = new GlobalPay_Authentication({optional BOOL isLive : #true for for live enviroment and false for staging default value false});
$clientAuthResponse = $clientAuth->Client({client id},{client secret});

if(!isset($clientAuthResponse['error'])){
	$access_token = $clientAuthResponse['access_token'];
} else {
	echo $clientAuthResponse['error'];
}

```

##### Transaction Initialization

[](#transaction-initialization)

```
require_once __DIR__ . '/../vendor/autoload.php';
use GlobalPay\Transaction;

$transactionInit = new GlobalPay_Transaction({Access_token},{optional BOOL isLive : #true for for live enviroment and false for staging default value false});
$transactionResponse = $transactionInit->initiation({{return url},{merchant reference},merchant id},{description},{total amount in minor},{currency code i.e NGN for naira},{customer email},{customer number},{customer firstname},{customer lastname});

if(!isset($transactionResponse['error'])){
	header("location:" . $transactionResponse['redirectUri '])
} else {
	echo $transactionResponse['error'];
}

```

##### Transaction Verification

[](#transaction-verification)

```
require_once __DIR__ . '/../vendor/autoload.php';
use GlobalPay\Transaction;

$transaction = new GlobalPay_Transaction({Access_token},{optional BOOL isLive : #true for for live enviroment and false for staging default value false});
$transactionResponse = $transactionInit->verification({merchant id}, {merchant reference}, {transaction reference});

if(!isset($transactionResponse['error'])){
	print_r($transactionResponse);
} else {
	echo $transactionResponse['error'];
}

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a05f633d2665bfa77515d58b6c6b17fe7288f77319facf3814c6a3c67055c6a?d=identicon)[Codegidi](/maintainers/Codegidi)

---

Top Contributors

[![codegidi](https://avatars.githubusercontent.com/u/594940?v=4)](https://github.com/codegidi "codegidi (3 commits)")

### Embed Badge

![Health badge](/badges/codegidi-globalpay/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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