basketin/laravel-paymob

Dealing with payments through the Egyptian payment gateway PayMob
4,353 1
Install
composer require basketin/laravel-paymob
PHP:^8.1||^8.2||^8.3||^8.4
License:MIT
Last Updated:Jul 14, 2026
Links: GitHub  ·  Packagist
Maintainer: komicho

Basketin Paymob

The customers' module lets you register and manage customers and support Filament.

Documentation

Installation

Install via composer.

composer require basketin/laravel-paymob

You need to migrate the package tables.

php artisan migrate

How to use

Create a link for payment

You can create a new link for payment using the following code.

<?php

use Basketin\Paymob\Configs\AmountToCent;
use Basketin\Paymob\Configs\PaymentMethod;
use Basketin\Paymob\Pay;

$pay = new Pay;
$pay->setMethod(new PaymentMethod('wallet'));
$pay->setAmount(new AmountToCent(1000));
$pay->setMerchantOrderId(1234567);
return $pay->getLink();

Configs payments

php artisan vendor:publish --tag=basketin-paymob-config

And you can manage payments

...
'payments' => [
    'wallet' => [
        'api_key' => '<api_key>',
        'integration_id' => 00000,
        'iframe_id' => 00000,
    ],
],
...

Contributing

Thank you for considering contributing to this package! Be one of the Store team.

License

This package is an open-sourced software licensed under the MIT license.

Related Packages

vanilo/payment

Vanilo Payment Module

17,107 6
aimeos/aimeos-laravel

Cloud native, API first Laravel eCommerce package with integrated AI for ultra-f...

235,844 8,700
pixelpeter/laravel5-woocommerce-api-client

Laravel 5 wrapper for the Woocommerce REST API

106,676 123
ignited/laravel-omnipay

Integrates Omnipay with Laravel and provides an easy configuration.

1,131,220 515