confirmApplePayPayment method
Confirms the Apple pay payment using the provided clientSecret
.
Use this method when the form is being submitted.
Throws an StripeError in confirming the payment fails.
Implementation
Future<void> confirmApplePayPayment(
String clientSecret,
) async {
await _awaitForSettings();
if (!isApplePaySupported.value) {
//throw StripeError<ApplePayError>
//(ApplePayError.canceled, 'APPLE_PAY_NOT_SUPPORTED_MESSAGE');
}
try {
await _platform.confirmApplePayPayment(clientSecret);
} on StripeError {
rethrow;
}
}