PHPackages                             php-coda/laravel-coda - 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. php-coda/laravel-coda

ActiveLibrary

php-coda/laravel-coda
=====================

Coda Payment Pages Integration API

39961PHP

Since Sep 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wms23/laravel-coda)[ Packagist](https://packagist.org/packages/php-coda/laravel-coda)[ RSS](/packages/php-coda-laravel-coda/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Coda Redirect API , Payment Gateway Api &amp; rest Api
==============================================================

[](#laravel-coda-redirect-api--payment-gateway-api--rest-api)

[![StyleCI](https://camo.githubusercontent.com/c0fbab2cdadbe038038a5461227c4f4d3c24659a588b658a49b7f3dac02fbc41/68747470733a2f2f7374796c6563692e696f2f7265706f732f39383937393537312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/98979571)[![Latest Stable Version](https://camo.githubusercontent.com/30431b09fcb20c64ca223daad30f89fb34f685973e9bd66e27ec135f06b49d52/68747470733a2f2f706f7365722e707567782e6f72672f7068702d636f64612f6c61726176656c2d636f64612f762f737461626c65)](https://packagist.org/packages/php-coda/laravel-coda)[![Total Downloads](https://camo.githubusercontent.com/bc0044d51e250ab59bb4ab45f74dffd7045c8f7d8a1d4c0bea9c5fd5a250ef26/68747470733a2f2f706f7365722e707567782e6f72672f7068702d636f64612f6c61726176656c2d636f64612f646f776e6c6f616473)](https://packagist.org/packages/php-coda/laravel-coda)

Laravel Coda package

Laravel version 5.x.x
---------------------

[](#laravel-version-5xx)

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

[](#installation)

Install using composer:

```
composer require php-coda/laravel-coda
```

Once installed, in your project's config/app.php file replace the following entry from the providers array:

```
PhpCoda\LaravelCoda\LaravelCodaServiceProvider::class,
```

And

```
php artisan vendor:publish --provider="PhpCoda\LaravelCoda\LaravelCodaServiceProvider" --force
```

This is the contents of the published config file:

```
return [
    'airtimeURL' => env('airtimeURL'),

    'airtimeRestURL' => env('airtimeRestURL'),

    'country'    => env('country'),

    'currency'   => env('currency'),

    'txnType'    => env('txnType'),

    'requestType' => env('requestType','json'),
];
```

Add your application configuration to a .env file

```
airtimeURL=*********
airtimeRestURL=*******
country=********
currency=********
txnType=*********
requestType=********
```

#### Payment Request \[ Using the Payment Gateway API and SecurePay \]

[](#payment-request--using-the-payment-gateway-api-and-securepay-)

Sample Construct Payment Form

Add the `data-encrypt` fields into the form to capture card information securely.

```

       function processPayment (obj) {
               initTxn (obj, 1);
       }        function initTxn (obj, payType) {
           $.ajax ( {
               type: "POST",
               url: "",
               data: $('#itemForm').serialize() + "&type=InitTxn",
               // console.log(data);
               success: function (data) {
                   if (payType == 1) {
                       airtime_checkout(data);
                   } else if (payType == 2) {
                       $("#txn_id").val(data);
                       $("#itemForm").attr("action","/php-rest/iframeDesktop.php");
                       $("#itemForm").submit();
                   } else if (payType == 3) {
                       $("#txn_id").val(data);
                       $("#itemForm").attr("action","/php-rest/iframeMobile.php");
                       $("#itemForm").submit();
                   }
               },
               error: function (jqXHR, textSatus, err) {
                   alert (err);
               }
           } );
       }

        Payment Now

```

Submit the request your back end code will receives

##### Preparation

[](#preparation)

```
$payload = \PaymentCoda::CodaRequest($request);
```

Submit the Payment Request:

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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/624b5c55b8df9c8f4e5c05737477a068a8b97d41481b55d7d91e92b459840145?d=identicon)[wms23](/maintainers/wms23)

### Embed Badge

![Health badge](/badges/php-coda-laravel-coda/health.svg)

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

PHPackages © 2026

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