public static string GetUrl(this SupportedMethodsType supportedMethod)
        {
            switch (supportedMethod)
            {
            case SupportedMethodsType.ApplePay:
                return("https://apple.com/apple-pay");

            case SupportedMethodsType.SamsungPay:
                return("https://spay.samsung.com");

            case SupportedMethodsType.GooglePay:
                return("https://google.com/pay");

            case SupportedMethodsType.Facebook:
                return("fb");

            default:
                return("");
            }
        }
예제 #2
0
        public UrlBasedSupportedMethods CreateUrlPaymentMethod(SupportedMethodsType supportedMethods = SupportedMethodsType.Custom)
        {
            var context = new UrlPaymentMethod(supportedMethods);

            return(context);
        }
예제 #3
0
 public UrlPaymentMethod(SupportedMethodsType supportedMethodType = SupportedMethodsType.Custom)
 {
     SupportedMethods = supportedMethodType.GetUrl();
 }