swervpay_dart 0.0.5 swervpay_dart: ^0.0.5 copied to clipboard
Dart Client for Swervpay. API Wrapper for everything that Swervpay offer for Flutter/Dart Developer.
import 'package:swervpay_dart/swervpay_dart.dart';
Future<void> main() async {
// Create a SwervpayClient instance
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);
}
}