revolution/laravel-paypay
Composer 安装命令:
composer require revolution/laravel-paypay
包简介
Simple integration Laravel and PayPay API
README 文档
README
Simple integration Laravel and PayPay OpenPayment API.
https://developer.paypay.ne.jp/
https://github.com/paypay/paypayopa-sdk-php
Overview
This package provides a Laravel-style interface for the PayPay OpenPayment API SDK, making it easy to integrate PayPay payment processing into your Laravel applications. The package wraps the official PayPay PHP SDK with familiar Laravel patterns including facades, service providers, and dependency injection.
Key features:
- Laravel-style interface: Access PayPay controllers through a clean facade pattern
- Easy testing: Built-in support for mocking PayPay API calls in your tests
- Configuration management: Environment-based configuration following Laravel conventions
- Service container integration: Proper dependency injection and service binding
The package allows you to work with PayPay's payment, refund, QR code, user, and wallet operations using Laravel's familiar syntax while maintaining full access to the underlying PayPay SDK functionality.
Requirements
- PHP >= 8.3
- Laravel >= 12.0
Installation
composer require revolution/laravel-paypay
Configuration
.env
PAYPAY_PRODUCTION=false
PAYPAY_API_KEY=
PAYPAY_API_SECRET=
PAYPAY_MERCHANT_ID=
PAYPAY_CURRENCY=JPY
Usage
Magic method returns the corresponding controller class.
use Revolution\PayPay\Facades\PayPay; /* @var PayPay\OpenPaymentAPI\Controller\Code $code */ $code = PayPay::code(); /* @var PayPay\OpenPaymentAPI\Controller\Payment $payment */ $payment = PayPay::payment(); /* @var PayPay\OpenPaymentAPI\Controller\Refund $refund */ $refund = PayPay::refund();
use Revolution\PayPay\Facades\PayPay; use PayPay\OpenPaymentAPI\Models\CreateQrCodePayload; $payload = new CreateQrCodePayload(); // ... $response = PayPay::code()->createQRCode($payload); // ...
Testing
use Revolution\PayPay\Facades\PayPay; PayPay::expects('code->createQRCode')->once()->andReturn([]);
LICENSE
MIT
revolution/laravel-paypay 适用场景与选型建议
revolution/laravel-paypay 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15.91k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2021 年 02 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「paypay」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 revolution/laravel-paypay 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 revolution/laravel-paypay 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 revolution/laravel-paypay 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP SDK for PayPay Open Payment API
PHP SDK for PayPay Open Payment API
Alfabank REST API integration
PayPay's Open Payment API Service Provider for Laravel
Laravel package for Accurate Online API integration.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 15.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-07