tabby static method
Future<void>
tabby({
- required BuildContext context,
- required PaymentRequest paymentRequest,
- required void onTabbyAuthorized(
- BuildContext launchingContext,
- Map<
String, dynamic> merchantResponse
- void onTabbyError(
- 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,
);
}