live-controls/payment
最新稳定版本:2.1.7
Composer 安装命令:
composer require live-controls/payment
包简介
Payment package for live-controls
README 文档
README
Helper classes and objects to create online checkouts for IUGU and PagSeguro.
No warranty for any unwanted sideeffects!
Requirements
- PHP 8.0+
- GuzzleHttp\Guzzle
Translations
None
Installation
- Install Payment package
composer require live-controls/payment
- Add PAGSEGURO_EMAIL_DEBUG and PAGSEGURO_TOKEN_DEBUG
- Add PAGSEGURO_EMAIL and PAGSEGURO_TOKEN
- Publish configuration file
php artisan vendor:publish --tag="livecontrols.payment.config"
Configuration
- 'logging' => If set to true, the library will log the requests and responses even in production mode.
- 'debug' => Defaults to the applications debug mode. This way you can set the library to debug mode, without setting the whole application to it.
- 'pagseguro_email_debug' => The email from your pagseguro account to be used in debug/sandbox mode.
- 'pagseguro_token_debug' => The token from your pagseguro account to be used in debug/sandbox mode. (Needs to be your sandbox token, else an exception will be thrown)
- 'pagseguro_email' => The email from your pagseguro account to be used in production mode.
- 'pagseguro_token' => The token from your pagseguro account to be used in production mode. (Needs to be your production token, else an exception will be thrown)
Content
- Transparent Checkout for IUGU (incl. PaymentItem and PaymentSender classes)
- Redirect Checkout for PagSeguro (incl. PaymentItem, ShippingInformation,
PaymentReceiverand PaymentSender classes)
Usage
IUGU
Warning: No longer updated, but should probably work
PagSeguro
- Create Token for testing and for production on PagSeguro (If you don't know how, ask PagSeguro)
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-22