startDeeplink static method

Future<StartDeeplinkResponse> startDeeplink({
  1. required Merchant merchant,
  2. required Transaction transaction,
  3. required Buyer buyer,
})

Returns a JSON response or if an error occurred will be throw exception. This type of payment is to direct an end user to a bank mobile application. After the end user completes payment via mobile banking, user will be directed back to merchant mobile application.

  • merchant (Required) - Merchant data
  • transaction (Required) - Transaction data
  • buyer (Required) - Buyer data

Implementation

static Future<StartDeeplinkResponse> startDeeplink({
  required Merchant merchant,
  required Transaction transaction,
  required Buyer buyer,
}) async {
  var result = await _channel.invokeMethod('startDeeplink', {
    'merchant': merchant.toJson(),
    'transaction': transaction.toJson(),
    'buyer': buyer.toJson(),
  });
  return StartDeeplinkResponse.fromJson(result);
}