swervpay_dart 0.0.8 copy "swervpay_dart: ^0.0.8" to clipboard
swervpay_dart: ^0.0.8 copied to clipboard

Dart Client for Swervpay. API Wrapper for everything that Swervpay offer for Flutter/Dart Developer.

Dart Client for Swervpay

pub package License: MIT


Explore the docs »

X (Twitter) · Linkedin · Changelog

Installation #

$ flutter pub add swervpay_dart

# OR

$ dart pub add swervpay_dart

Configuration #

Create a new instance of Swervpay with your secret_key and business_id:

import "package:swervpay_dart/swervpay_dart.dart";

final swervpayClient = SwervpayClient(
  config: SwervpayClientConfig(
    businessId: '<BUSINESS_ID>',
    secretKey: '<SECRET_KEY>',
  ),
);

// Fetch all banks
final banks = await swervpayClient.other.banks();

// Print the banks
for (final bank in banks) {
  print(bank.bankName);
}

Replace <SECRET_KEY> and <BUSINESS_ID> with your actual secret key and business ID.

Documentation #

See docs for Dart here

1
likes
160
pub points
31%
popularity

Publisher

verified publishermujhtech.xyz

Dart Client for Swervpay. API Wrapper for everything that Swervpay offer for Flutter/Dart Developer.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

freezed_annotation, http, json_annotation

More

Packages that depend on swervpay_dart