confirmPlatformPayPaymentIntent method
Future<PaymentIntent>
confirmPlatformPayPaymentIntent({
- required String clientSecret,
- required PlatformPayConfirmParams confirmParams,
Launches the relevant native wallet sheet (Apple Pay on iOS an Google Pay on Android) in order to confirm a Stripe payment intent.
The clientSecret is the secret of the PaymentIntent. ConfirmParams are
parameters describing the GooglePay and Apple Pay configuration.
Throws an StripeError in case confirmPlatformPaySetupIntent fails.
Implementation
Future<PaymentIntent> confirmPlatformPayPaymentIntent({
required String clientSecret,
required PlatformPayConfirmParams confirmParams,
}) async {
try {
await _awaitForSettings();
return _platform.platformPayConfirmPaymentIntent(
clientSecret: clientSecret,
params: confirmParams,
);
} on StripeError {
rethrow;
}
}