getReturnUrlForSca method
Creates a return URL that can be used to authenticate a single PaymentIntent. This should be set on the intent before attempting to authenticate it.
Implementation
String getReturnUrlForSca({String? webReturnUrl}) {
if (kIsWeb) {
return webReturnUrl ?? StripeUiOptions.defaultWebReturnUrl;
} else {
final requestId = Random.secure().nextInt(99999999);
return '${StripeUiOptions.defaultMobileReturnUrl}?requestId=$requestId';
}
}