rapyd 0.1.0
rapyd: ^0.1.0 copied to clipboard
Rapyd Flutter SDK for accessing the Payments API
example/example.dart
import 'package:rapyd/rapyd.dart';
Future<void> main() async {
final rapydClient = RapydClient('<rapydAccessKey>', '<rapydSecretKey>');
try {
final customer = await rapydClient.createNewCustomer(
email: '[email protected]',
name: 'User',
);
print('Created customer successfully, ID: ${customer.data.id}');
} catch (e) {
print('ERROR: ${e.toString()}');
}
}