承接 basketin/laravel-paymob 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

basketin/laravel-paymob

Composer 安装命令:

composer require basketin/laravel-paymob

包简介

Dealing with payments through the Egyptian payment gateway PayMob

README 文档

README

Source Packagist Version

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.

统计信息

  • 总下载量: 2.97k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-09