myfatoorah/laravel-package
Composer 安装命令:
composer require myfatoorah/laravel-package
包简介
The official MyFatoorah Payment Gateway for Laravel.
README 文档
README
Description
This package is the official MyFatoorah Payment Gateway Laravel package. It uses myfatoorah/library composer package.
Main Features
- Example of creating MyFatoorah invoices.
- Example of displaying the MyFatoorah payment status.
- Example of displaying the enabled gateways at your MyFatoorah account to be displayed on the checkout page.
- Example of how to use webhook.
Important Note!
The MyFatoorah Laravel package provides examples of how to use the MyFatoorah Library and the MyFatoorah API endpoints. However, you must implement validations or security measures to ensure a seamless payment experience. For more information, contact MyFatoorah Technical Team.
Installation steps
Install the Package
Install the package via myfatoorah/laravel-package composer. Open a command console, enter your project directory, and execute the following command to download the latest stable version:
composer require myfatoorah/laravel-package
Publish the MyFatoorah provider
Open the console, and enter the following command:
php artisan vendor:publish --provider="MyFatoorah\LaravelPackage\MyFatoorahServiceProvider" --tag="myfatoorah"
Add Configuration Data
Edit the config/myfatoorah.php file with your correct vendor data.
Demo configuration
- Use the test API token key mentioned here.
- Set the test mode to true.
- Use one of the test cards.
Live Configuration
- Use the live API token key mentioned here.
- Set the test mode to false.
- Set the country ISO code as mentioned in this link.
Clear Cache
Open the console, and enter the following command:
php artisan optimize:clear
Test the Payment Cycle
To test the payment cycle, type the URL below onto your browser. Replace only the {example.com} with your site domain:
https://{example.com}/myfatoorah
List the Payment Gateways
To test the display of available gateways on the checkout page, please enter the following URL into your browser. Replace only the {example.com} with your site domain:
https://{example.com}/myfatoorah/checkout?oid=22&customerId=32
Code Customization
Understand the MyFatooah library functions in the app/Http/Controllers/MyFatoorahController.php file. Then, use them in your project per your store needs. For security reasons, remove any unused MyFatoorah routes as a final step.
myfatoorah/laravel-package 适用场景与选型建议
myfatoorah/laravel-package 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 172.86k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 06 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「payment」 「gateway」 「laravel」 「shipping」 「commerce」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 myfatoorah/laravel-package 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 myfatoorah/laravel-package 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 myfatoorah/laravel-package 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Payyo Gateway for the Omnipay payment processing library
A PSR-7 compatible library for making CRUD API endpoints
Client library to send SMS using Comilio SMS Gateway API (https://www.comilio.it)
GovPayNet driver for the Omnipay payment processing library
BlueSnap driver for the Omnipay payment processing library
统计信息
- 总下载量: 172.86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 21
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2022-06-01