PHPackages                             triplea/triplea - 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. triplea/triplea

ActiveLibrary

triplea/triplea
===============

Triple A OpenAPI SDK for Laravel

1.2.3(2y ago)024MITPHPPHP &gt;=7.2

Since Aug 24Pushed 2y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (8)Used By (0)

Triple-A Payment SDK for Laravel
================================

[](#triple-a-payment-sdk-for-laravel)

Enjoy the benefits of accepting cryptocurrencies without having to hold or convert cryptocurrencies, with zero-volatility and next-day bank settlement.

The package offers the following:

- Triple A Crypto Payment
- Refund Crypto Payment

installation
============

[](#installation)

Install the package via composer: `composer require triplea/triplea`

### Config Files

[](#config-files)

In order to edit the default configuration you may execute:

```
php artisan vendor:publish --tag=triplea-config --force

```

After that, `config/triplea.php` will be created.

Add config value in your `.env`

```
//.env
TRIPLEA_CLIENT_ID=oacid-************************
TRIPLEA_CLIENT_SECRET=************************************
TRIPLEA_MERCHANT_KEY=mkey-***********************
TRIPLEA_SANDBOX=true
TRIPLEA_PAYMENT_TYPE=widget
```

Register on Triple-A Platform to get client id, client secret and merchant key. [Register here.](https://triple-a.io/signup/)

Usage
-----

[](#usage)

#### Create Payer using Payer Model

[](#create-payer-using-payer-model)

```
//use Topup\Triplea\Models\Payer;

// Payer ID, Payer Name, Payer Email, Payer Phone, Payer Address
$payer = new  Payer('payer_id', 'payer_name', 'payer@mail.com', '+6591234567', '123, streat, 1207');
```

#### Create Item using Item Model

[](#create-item-using-item-model)

```
//use Topup\Triplea\Models\Item;

// Item SKU, Item Name/Label, Quantity, Amount
$item = new Item('sku', 'Label Name', 1, 10);
```

#### Make Payment

[](#make-payment)

- `setOrderId()` set your unique order ID
- `setPayer()` set Payer `PAYER_ID` is required.
- `addItem()` add Item to your payment. Minimum 1 item is required.
- `setOrderAmount()` set amount for the payment.
- `setSuccessUrl()` set Your success url. It's will redirect you after the successful payment.
- `setCancelUrl()` it's will redirect you if you cancel the payement.
- `setNotifyUrl()` is the webhook url.
- `setNotifyEmail()` set your email to get transaction notification.
- `setNotifySecret()` optional - add secret key to verify and validate your webhook call.

```
$triplea = new  Triplea();
$response = $triplea->payment->setOrderId("UNIQUE_ORDER_ID")->setPayer($payer)->addItem($item)->setOrderAmount(12)->setSuccessUrl('http://success.io')->setCancelUrl('http://cancel.io')->setNotifyUrl('https://webhook.site/35a28e54-a6a7-4834-8d82-df7eb0780379')->setNotifyEmail('35a28e54-a6a7-4834-8d82-df7eb0780379@email.webhook.site')->create();
```

#### Add multiple item in payment

[](#add-multiple-item-in-payment)

You can use loop to add multiple items in your payment.

```
// use Topup\Triplea\Triplea;

$triplea = new  Triplea();

foreach($items as $item) {
	$triplea->payment->addItem(new  Item($item->sku, $item->label, $item->quantity, $item->amount));
}
```

### Get Payment Details

[](#get-payment-details)

To get payment details use `getDetails()` and pass `PAYMENT_REFERENCE`

```
// use Topup\Triplea\Triplea;

$triplea = new  Triplea();
$response = $triplea->payment->getDetails('PAYMENT_REFERENCE');
```

### Initialize Refund

[](#initialize-refund)

- `setPaymentReference()` set The payment reference to initialize the refund of the payment.
- `setEmail()` set The payer email to get refund url.
- `setRefundAmount()` set Exact refund amount of the payment.

```
// use Topup\Triplea\Triplea;

$triplea = new  Triplea();

$response = $triplea->refund->setPaymentReference('PAYMENT_REFERENCE')>setEmail('PAYER_EMAIL_TO_GET_REFUND_LINK')->setRefundAmount(12)->setNotifyUrl('https://webhook.site/35a28e54-a6a7-4834-8d82-df7eb0780379')->setRemarks("Refund for the order")->create();
```

### Get Refund Details

[](#get-refund-details)

```
// use Topup\Triplea\Triplea;

$triplea = new  Triplea();
$response = $triplea->refund->refundDetails('PAYMENT_REFERENCE');
```

### Cancel The Refund request

[](#cancel-the-refund-request)

```
// use Topup\Triplea\Triplea;

$triplea = new  Triplea();
$response = $triplea->refund->refundCancel('PAYOUT_REFERENCE');
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

6

Last Release

991d ago

PHP version history (4 changes)1.0.1PHP ^7.2.5

1.0.2PHP ^7.2.5|^8.0

1.2.0PHP ^7.2

1.2.1PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1b46910787eded1ac3e1bf7f4e6767d4eb0a7d4462234961494b790423cb0c5?d=identicon)[triple-a](/maintainers/triple-a)

---

Top Contributors

[![smitexpert](https://avatars.githubusercontent.com/u/18003029?v=4)](https://github.com/smitexpert "smitexpert (73 commits)")

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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