composer require maatify/paystack
use Maatify\PayStack\PayStackController;
require_once __DIR__ . '/vendor/autoload.php';
$pay_stack = new PayStackController(__SECRET_KEY__); // PayStack instance
- 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__);
- The Transactions API allows you create and manage payments on your integration.
- ✨ examples: Transactions.md ✨
- TThe Customers API allows you create and manage customers on your integration.
- ✨ examples: Customers.md ✨
- The Plans API allows you create and manage installment payment options on your integration.
- ✨ examples: Plans.md ✨
- The Subscriptions API allows you create and manage recurring payment on your integration.
- ✨ examples: Subscriptions.md ✨