rapyd 0.1.5 rapyd: ^0.1.5 copied to clipboard
Rapyd Flutter SDK for accessing the Payments API, has in-built methods for making proper API calls easily.
import 'package:rapyd/rapyd.dart';
Future<void> main() async {
final rapydClient = RapydClient('<rapydAccessKey>', '<rapydSecretKey>');
try {
final customer = await rapydClient.createNewCustomer(
email: 'example@name.com',
name: 'User',
);
print('Created customer successfully, ID: ${customer.data.id}');
} catch (e) {
print('ERROR: ${e.toString()}');
}
}