tabby static method

Future<void> tabby({
  1. required BuildContext context,
  2. required PaymentRequest paymentRequest,
  3. required void onTabbyAuthorized(
    1. BuildContext launchingContext,
    2. Map<String, dynamic> merchantResponse
    ),
  4. void onTabbyError(
    1. Object? error
    )?,
})

Triggers the Tabby checkout flow directly, without requiring an embedded widget.

The merchant receives Tabby authorization or error callbacks.

Implementation

static Future<void> tabby({
  required BuildContext context,
  required PaymentRequest paymentRequest,
  required void Function(BuildContext launchingContext, Map<String, dynamic> merchantResponse) onTabbyAuthorized,
  void Function(Object? error)? onTabbyError,
}) {
  return PayorcSdk.instance.showTabbyCheckout(
    context,
    paymentRequest: paymentRequest,
    onTabbyAuthorized: onTabbyAuthorized,
    onTabbyError: onTabbyError,
  );
}