generateApplePayToken static method
Generate Apple Pay Token. See https://api-reference.checkout.com/#operation/requestAToken type --> apple_pay
paymentDataBase64
Base64 encoded representation of PKPayment.token.paymentData
Implementation
static Future<CardTokenisationResponse?> generateApplePayToken({
required String paymentDataBase64
}) async {
try {
final String stringJSON = await _channel.invokeMethod(
METHOD_GENERATE_APPLE_PAY_TOKEN, <String, dynamic>{
'paymentDataBase64': paymentDataBase64,
});
return CardTokenisationResponse.fromString(stringJSON);
} on PlatformException catch (e) {
throw FlutterCheckoutException.fromPlatformException(e);
}
}