initialize method

Future<bool> initialize({
  1. required List<FawryItem> items,
  2. String? merchantRefNumber,
  3. String? customerProfileId,
  4. int? paymentExpiry,
  5. String? returnUrl,
  6. bool? authCaptureModePayment,
  7. Map<String, dynamic>? customParam,
})

Initialize FawryPay payment charge.

Initialize the payment charge by adding some parameters. Returns true if it initialized fine. Throws exception if not.

items sets the list of items that the user will pay for. merchantRefNumber sets an optional number consists of 16 random characters and numbers. customerProfileId sets an optional profile id (Only Web). paymentExpiry sets the time in which it will expire this payment (Only Web). returnUrl sets return url which will go back after payment completed (Only Web & Must include if using Cards). authCaptureModePayment sets auth capture mode payment (Only Web). customParam sets a map of custom data you want to receive back with result data after payment.

Implementation

Future<bool> initialize({
  required List<FawryItem> items,
  String? merchantRefNumber,
  String? customerProfileId,
  int? paymentExpiry,
  String? returnUrl,
  bool? authCaptureModePayment,
  Map<String, dynamic>? customParam,
}) {
  throw UnimplementedError('initialize() has not been implemented.');
}