maatify/paystack
最新稳定版本:1.0.2
Composer 安装命令:
composer require maatify/paystack
包简介
Official PHP library for maatify.dev PayStack API handler, known by our team
关键字:
README 文档
README
composer require maatify/paystack
Usage
Instance
use Maatify\PayStack\PayStackController; require_once __DIR__ . '/vendor/autoload.php'; $pay_stack = new PayStackController(__SECRET_KEY__); // PayStack instance
Setting optional: Query Or Body Parameters
there is two options to set parameters for All Methods :
This explains for transaction Initialize Example
- 1st
$caller_object = $pay_stack->Transaction()->Initialize(); // transaction Initialize Example $result = $caller_object ->SetOptional(__key__, __val__) ->SetOptional(__key__, __val__) ->Execute(__CUSTOMER_EMAIL__, __AMOUNT_IN_CENT__);
- 2nd
$caller_object = $pay_stack->Transaction()->Initialize(); // transaction Initialize Example $result = $caller_object->SetAllOptionalAsArray([ __key1__ => __val1__, __key2__ => __val2__, ]) ->Execute(__CUSTOMER_EMAIL__, __AMOUNT_IN_CENT__);
Transactions Example
- The Transactions API allows you create and manage payments on your integration.
- ✨ examples: Transactions.md ✨
Customers Example
- TThe Customers API allows you create and manage customers on your integration.
- ✨ examples: Customers.md ✨
Plans Example
- The Plans API allows you create and manage installment payment options on your integration.
- ✨ examples: Plans.md ✨
Subscriptions Example
- The Subscriptions API allows you create and manage recurring payment on your integration.
- ✨ examples: Subscriptions.md ✨
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-07-25