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(""); } }
public UrlBasedSupportedMethods CreateUrlPaymentMethod(SupportedMethodsType supportedMethods = SupportedMethodsType.Custom) { var context = new UrlPaymentMethod(supportedMethods); return(context); }
public UrlPaymentMethod(SupportedMethodsType supportedMethodType = SupportedMethodsType.Custom) { SupportedMethods = supportedMethodType.GetUrl(); }