Ejemplo n.º 1
0
        public void Transaction(CardType card)
        {
            UKPaymentGateway factory = new UKPaymentGateway();

            gateway = factory.CreatePaymentGateway(card);
            gateway.MakePayment();
        }
Ejemplo n.º 2
0
        public void MakePayment(PaymentMethod method, Product product)
        {
            PaymentGatewayFactory factory = new PaymentGatewayFactory();

            gateway = factory.CreatePaymentGateway(method, product);

            gateway.MakePayment(product);
        }
 public MyMethod() {
     //get your models prepared etc.
     _paymentGateway.MakePayment(cardDetails, addressDetails);
 }
Ejemplo n.º 4
0
        public JsonResult ProcessPayments(CardDetailDTO cardDetail)
        {
            var result = _service.MakePayment(cardDetail);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }