예제 #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));
            }
        }
예제 #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));
            }
        }
예제 #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));
            }
        }
예제 #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));
            }
        }