startPayment method
Implementation
@override
Future<PinelabsPaymentResult> startPayment(
PinelabsPaymentRequest request,
) async {
final response = await methodChannel.invokeMapMethod<Object?, Object?>(
'startPayment',
request.toMap(),
);
if (response == null) {
throw PlatformException(
code: 'NULL_RESPONSE',
message: 'Native SDK returned no response.',
);
}
return PinelabsPaymentResult.fromMap(response);
}