Beispiel #1
0
        public InstallmentModel GetInstallmentInfo(double amount)
        {
            AnperoService ws = new AnperoService();

            PaymentConfig[] pc = ws.GetPaymentAPIConfig(StoreID, TokenKey);

            if (pc != null && pc.Length > 0)
            {
                for (int i = 0; i < pc.Length; i++)
                {
                    if (pc[i].Name.ToUpper() == "AL")
                    {
                        AlepayCheckout checkout = new AlepayCheckout();
                        return(checkout.GetInstallmentInfo(amount, pc[i].Token, pc[i].ChecksumKey));
                    }
                }
            }
            return(null);
        }