anosmx/tap-payment-laravel
Composer 安装命令:
composer require anosmx/tap-payment-laravel
包简介
Laravel wrapper for Tap Payment gateway API. https://tap.company
README 文档
README
This package provides an easy way to interact with Tap Payment https://tap.company.
Laravel compatibility
| Laravel | PHP |
|---|---|
| ^8.0 | 8.0 |
Installation
Use the package manager composer to install.
composer require anosmx/tap-payment-laravel
Publish configuration file.
php artisan vendor:publish --tag=tap-payment-config
Available variables
TAP_API_TOKEN={Your Tap Payment Token} TAP_CURRENCY='SAR' TAP_TIMEZONE='Asia/Riyadh' TAP_RECEIPT_BY_EMAIL=false TAP_RECEIPT_BY_SMS=false TAP_COUNTRY_CODE='966' TAP_POST_URL='http://localhost' TAP_REDIRECT_URL='http://localhost' TAP_LANG_CODE='ar'
Usage
Available classes:
Authorize
Card
Charge
Customer
Invoice
Order
Product
Recurring
Refund
Subscription
Token
Example class usage:
Access the class using Facade.
use Anosmx\TapPayment\Facades\TapCharge; $attributes = [ 'period_date_from' => 1516315144000, 'period_date_to' => 1545172744000, 'period_type' => 1, 'status' => '', 'starting_after' => '', 'limit' => 25 ]; $charges = TapCharge::listCharges($attributes);
Or directly
use Anosmx\TapPayment\Authorize; $authorize = new Authorize(); $authorize->updateAuthorize($authorize_id, [ 'description' => 'Foo', 'receipt_email' => true, 'receipt_sms' => false, 'metadata_udf2' => 'Bar' ]);
Available attributes can be found in each class function. ex:
Anosmx\TapPayment\{ClassName}
License
The MIT License (MIT).
统计信息
- 总下载量: 146
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-19