paystack 0.0.2 copy "paystack: ^0.0.2" to clipboard
paystack: ^0.0.2 copied to clipboard

A backend client library for Paystack inspired by Pypaystack2 from Python's ecosystem.

example/paystack_example.dart

import 'package:paystack/paystack.dart';

void main() async {
  // The secretKey optional name parameter can be omitted if provided in the
  // environmental variables. as 'PAYSTACK_SECRET_KEY'
  var client = PaystackClient(secretKey: "<your paystack secret key>");
  // Retrieve all the customers on your integrations.
  var response = await client.customers.all();
  print("the statusCode of the last call is ${response.statusCode}");
  print(response.data);

  // Initialize a transaction on you integration.
  response = await client.transactions.initialize(10000, "johndoe@example.com");
  print(response.data);
}
copied to clipboard
2
likes
150
points
57
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.19 - 2025.04.03

A backend client library for Paystack inspired by Pypaystack2 from Python's ecosystem.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on paystack