cancelDeeplink static method

Future<CancelDeeplinkResponse> cancelDeeplink({
  1. String merchantId = '',
  2. String paymentCode = '',
  3. String merchantReference = '',
})

Returns a JSON response or if an error occurred will be throw exception. Merchant can cancel an existing pending deeplink transaction for each specific payment code.

  • merchantId (Required) - Merchant ID
  • merchantReference (Conditional) - Optional if 'paymentCode' is presented and vice versa.
  • paymentCode (Conditional) - Optional if 'merchantReference' is presented and vice versa.

Implementation

static Future<CancelDeeplinkResponse> cancelDeeplink({
  String merchantId = '',
  String paymentCode = '',
  String merchantReference = '',
}) async {
  var result = await _channel.invokeMethod('cancelDeeplink', {
    'merchantId': merchantId,
    'paymentCode': paymentCode,
    'merchantReference': merchantReference,
  });
  return CancelDeeplinkResponse.fromJson(result);
}