getReturnUrlForSca method

String getReturnUrlForSca()

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() {
  final requestId = Random.secure().nextInt(99999999);
  return "$_returnUrlForSca?requestId=$requestId";
}