public string GetEndPoint(PaymentType type)
        {
            switch (type)
            {
                #pragma warning disable 0162 //CS0162 Unreachable code detected
            case PaymentType.HOSTED:
                return(SveaConfig.GetTestPayPageUrl());

                break;

            case PaymentType.INVOICE:
            case PaymentType.PAYMENTPLAN:
                return(SveaConfig.GetTestWebserviceUrl());

                break;

            case PaymentType.ADMIN_TYPE:
                return(SveaConfig.GetTestAdminServiceUrl());

                break;

            default:
                throw new SveaWebPayException("Unknown PaymentType");
                #pragma warning restore 0162
            }
        }
Beispiel #2
0
        public string GetEndPoint(PaymentType type)
        {
            switch (type)
            {
            case PaymentType.HOSTED:
                return(SveaConfig.GetTestPayPageUrl());

            case PaymentType.INVOICE:
                return(SveaConfig.GetTestWebserviceUrl());

            case PaymentType.PAYMENTPLAN:
                return(SveaConfig.GetTestWebserviceUrl());

            case PaymentType.ADMIN_TYPE:
                return(SveaConfig.GetTestAdminServiceUrl());

            default:
                throw new SveaWebPayException("Unknown PaymentType");
            }
        }
Beispiel #3
0
 public string GetEndPoint(PaymentType type)
 {
     return(type == PaymentType.HOSTED ? SveaConfig.GetTestPayPageUrl() : SveaConfig.GetTestWebserviceUrl());
 }