Example #1
0
        public static INPaymentStatusResolutionResult GetConfirmationRequired(INPaymentStatus valueToConfirm)
        {
#if IOS
            if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0))
#elif WATCH
            if (WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion(4, 0))
#endif
            { return(ConfirmationRequiredWithPaymentStatusToConfirm(valueToConfirm)); }
            else
            {
                return(ConfirmationRequiredWithValueToConfirm(valueToConfirm));
            }
        }
Example #2
0
        public static INPaymentStatusResolutionResult GetConfirmationRequired(INPaymentStatus valueToConfirm)
        {
#if IOS
            if (SystemVersion.CheckiOS(11, 0))
#elif WATCH
            if (SystemVersion.CheckwatchOS(4, 0))
#endif
            { return(ConfirmationRequiredWithPaymentStatusToConfirm(valueToConfirm)); }
            else
            {
                return(ConfirmationRequiredWithValueToConfirm(valueToConfirm));
            }
        }
Example #3
0
        public static INPaymentStatusResolutionResult GetSuccess(INPaymentStatus resolvedValue)
        {
#if IOS
            if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0))
#elif WATCH
            if (WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion(4, 0))
#endif
            { return(SuccessWithResolvedPaymentStatus(resolvedValue)); }
            else
            {
                return(SuccessWithResolvedValue(resolvedValue));
            }
        }
Example #4
0
        public static INPaymentStatusResolutionResult GetSuccess(INPaymentStatus resolvedValue)
        {
#if IOS
            if (SystemVersion.CheckiOS(11, 0))
#elif WATCH
            if (SystemVersion.CheckwatchOS(4, 0))
#endif
            { return(SuccessWithResolvedPaymentStatus(resolvedValue)); }
            else
            {
                return(SuccessWithResolvedValue(resolvedValue));
            }
        }