myfatoorah/laravel-package 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

  1. Use the test API token key mentioned here.
  2. Set the test mode to true.
  3. Use one of the test cards.

Live Configuration

  1. Use the live API token key mentioned here.
  2. Set the test mode to false.
  3. 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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2022-06-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固