handleMethodCall method

Future<Map> handleMethodCall(
  1. MethodCall call
)

Handles method calls over platform channel

Implementation

Future<Map<dynamic, dynamic>> handleMethodCall(MethodCall call) async {
  switch (call.method) {
    case 'open':
      return await startPayment(call.arguments);
    case 'resync':
    default:
      var defaultMap = {'status': 'Not implemented on web'};

      return defaultMap;
  }
}