paystack 0.0.2
paystack: ^0.0.2 copied to clipboard
A backend client library for Paystack inspired by Pypaystack2 from Python's ecosystem.
Paystack #
A backend client library for Paystack in dart inspired by Pypaystack2 from python's ecosystem.
Features #
This library implements a wrapper on all endpoints provided by Paystack
. The PaystackClient
class has bindings on it that can be used to access the different wrapper methods. The wrapper
methods are grouped to match Paystack's API Reference. e.g.
PaystackClient.transactions
binding provides wrapper methods for all the endpoint for
Paystack's Transactions API. i.e. PaystackClient.transactions.initialize
is a wrapper method
for Paystack's initialize transaction endpoint.
Bindings on the PaystackClient
class #
Bindings |
---|
PaystackClient.applePay |
PaystackClient.bulkCharges |
PaystackClient.charges |
PaystackClient.customers |
PaystackClient.dedicatedVirtualAccounts |
PaystackClient.disputes |
PaystackClient.integration |
PaystackClient.miscellaneous |
PaystackClient.paymentPages |
PaystackClient.paymentRequests |
PaystackClient.plans |
PaystackClient.products |
PaystackClient.refunds |
PaystackClient.settlements |
PaystackClient.subaccounts |
PaystackClient.subscriptions |
PaystackClient.terminals |
PaystackClient.transactions |
PaystackClient.transactionSplits |
PaystackClient.transfers |
PaystackClient.transferControl |
PaystackClient.transferRecipient |
PaystackClient.verification |
Getting started #
Add the library to your client package.
dart pub add paystack
Usage #
See /example
folder for more examples.
import 'package:paystack/paystack.dart';
void main() async {
const client = PaystackClient(secretKey: "<your paystack secret key>");
const response = await
client.applePay.all(false);
print(response.statusCode);
print(response.data
);
}
Additional information #
Subsequent releases will provide more test coverage and documentation. This project is still actively in development. If you have any questions, found a bug or have feature suggestions, please create an issue in the project's repository. Enjoy your coding experience! 😎