redirectToCheckout function

Future<CheckoutResponse> redirectToCheckout({
  1. required BuildContext context,
  2. required String sessionId,
  3. required String publishableKey,
  4. String? stripeAccountId,
  5. String? successUrl,
  6. String? canceledUrl,
})

Implementation

Future<CheckoutResponse> redirectToCheckout({
  required BuildContext context,
  required String sessionId,
  required String publishableKey,
  String? stripeAccountId,
  String? successUrl,
  String? canceledUrl,
}) {
  // ignore: deprecated_member_use_from_same_package
  return stripe.redirectToCheckout(
    context: context,
    sessionId: sessionId,
    publishableKey: publishableKey,
    stripeAccountId: stripeAccountId,
    successUrl: successUrl,
    canceledUrl: canceledUrl,
  );
}