定制 nourollahr/laravel-fake-payment 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nourollahr/laravel-fake-payment

最新稳定版本:1.0.3

Composer 安装命令:

composer require --dev nourollahr/laravel-fake-payment

包简介

A fake payment gateway package for Laravel (for testing purposes)

README 文档

README

A simple package to simulate a payment gateway in Laravel. Ideal for testing projects without using a real payment gateway.

Installation

composer require nourollahr/laravel-fake-payment

Publish Config and Views (Optional)

You can publish the config and views to customize the package behavior and appearance:

# Publish config
php artisan vendor:publish --provider="Nourollahr\FakePayment\FakePaymentServiceProvider" --tag=config

# Publish views
php artisan vendor:publish --provider="Nourollahr\FakePayment\FakePaymentServiceProvider" --tag=views

Usage

New Payment:

use FakePayment\Facades\FakePayment;

$amount = 10000;

// Optional callback URL. If null, the user will be redirected to the package's result page
$callbackUrl = route('invoices.verify'); // or null

$payment = FakePayment::pay($amount, $callbackUrl);

// Redirect user to the fake payment page
return redirect($payment['redirect_url']);

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固