PHPackages                             mx13/accept - 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. mx13/accept

ActiveLibrary[Payment Processing](/categories/payments)

mx13/accept
===========

Accept online payment package for Laravel.

1.0.3(6y ago)0101MITPHP

Since Aug 31Pushed 6y agoCompare

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

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

Accept
======

[](#accept)

- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)

Introduction
------------

[](#introduction)

A Laravel package which simplifies working with 'Accept payment gateway' API

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

[](#installation)

Install the package through [Composer](http://getcomposer.org/).

Run the Composer require command from the Terminal:

```
 composer require mx13/accept

```

Requires PHP 7.2 and above.
Dependencies:

- guzzlehttp/guzzle

Run this console command after installation

```
php artisan accept:install

```

This command will add the following required lines to your project .env file

```
ACCEPT_API_KEY=
ACCEPT_INTEGRATION_ID=
ACCEPT_MERCHANT_ID=
ACCEPT_IFRAME_ID=
ACCEPT_HMAC_SECRET=

```

If you would like to override Accept package default configuration run the following command:

```
php artisan vendor:publish --tag=accept-config

```

Usage
-----

[](#usage)

```
$apiContext = new ApiContext();    // MX13\Accept\ApiContext

$item = new Item();    // MX13\Accept\Item
// Set item details
$item->setName('Product 1')
    ->setDescription('Some Product')
    ->setAmountCents(9900) // Item price in cents
    ->setQuantity(1);

$itemList = new ItemList();    // MX13\Accept\ItemList
// Set list of items
$itemList->setItems([$item]);

$amount = new Amount();    // MX13\Accept\Amount
// Set amount currency and amount in cents
$amount->setCurrency('EGP')
    ->setAmountCents($itemList->getTotal());

$billingData = new BillingData();  // MX13\Accept\BillingData
// Set billing data, mandatory by Accept and all required
$billingData->setApartment('237')
    ->setBuilding('101')
    ->setStreet('404')
    ->setPostalCode('655321')
    ->setCity('Minas Morgul')
    ->setState('Mordor')
    ->setCountry('Middle Earth')
    ->setEmail('t-1000@skynet.com')
    ->setFirstName('Tyler')
    ->setLastName('Durden')
    ->setFloor('13')
    ->setPhoneNumber('(288) 555-1534');

$merchantOrderId = 'YT-1300'; // Order unique id generated by the merchant

$payment = new Payment($apiContext);   // MX13\Accept\Payment
// Set your payment
$payment->setItems($itemList)
    ->setMerchantOrderId($merchantOrderId)
    ->setAmount($amount)
    ->setBillingData($billingData);

$payment->execute(); // Execute payment
```

Finally you can retrieve your iframe src by calling

```
$iframeUrl = $payment->getIframeUrl();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

2448d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7823982?v=4)[Mahdi Zarrintareh](/maintainers/mx13)[@mx13](https://github.com/mx13)

---

Top Contributors

[![mansonxasthur](https://avatars.githubusercontent.com/u/4397116?v=4)](https://github.com/mansonxasthur "mansonxasthur (7 commits)")

### Embed Badge

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

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

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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