RapydClient class

The client for getting access to all the Rapyd APIs.

Provide the Rapyd access key and the secret key while initializing the client. For example:

final rapydClient = RapydClient('<access_key>', '<secret_key>');

It's recommended to do the initialization globally inside a Flutter app, so that you can access the rapydClient object from any page.

Constructors

RapydClient(String _accessKey, String _secretKey)
The client for getting access to all the Rapyd APIs.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPaymentMethodToCustomer({required String customerId, required String type, required String number, required String expirationMonth, required String expirationYear, required String cvv, required String cardHoldersName}) Future<CardPayment?>
Used for adding a new payment method to a customer object.
createCheckout({required String amount, required String currency, required String countryCode, required String customerId, String? orderNumber, String? completePaymentURL, String? errorPaymentURL, String? merchantReferenceId, List<String>? paymentMethods, bool useCardholdersPreferredCurrency = true, String languageCode = 'en'}) Future<Checkout?>
Used for generating a new checkout object.
createNewCustomer({required String email, required String name}) Future<Customer>
Used for creating a new customer on Rapyd.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieveCheckout({required String checkoutId}) Future<PaymentStatus?>
Used for retrieving a checkout object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited