presentCheckout method

Future<InaiResult> presentCheckout({
  1. required BuildContext context,
})

Implementation

Future<InaiResult> presentCheckout({required BuildContext context}) async {
  InaiCheckoutWidget checkoutWidget = InaiCheckoutWidget(
      config: _config, checkoutMode: InaiCheckoutMode.payment);

  if (Platform.isAndroid){
      return await _showCheckoutWidget(context, checkoutWidget,false);
    }else{
      return await _showCheckoutWidget(context, checkoutWidget,true);
    }

}