Exemplo n.º 1
0
 public PoliApiController(
     IOnlinePaymentManager onlinePaymentManager,
     IStartPaymentStrategy <PoliPayment, StartPoliPaymentResponse> startPaymentStrategy,
     ICompletePaymentStrategy <string, PoliCompleteResponse, PoliPayment> completeStrategy)
 {
     _onlinePaymentManager = onlinePaymentManager;
     _startPaymentStrategy = startPaymentStrategy;
     _completeStrategy     = completeStrategy;
 }
Exemplo n.º 2
0
 public PayPalApiController(
     IOnlinePaymentManager onlinePaymentManager,
     IStartPaymentStrategy <PayPalPayment, StartPayPalPaymentResponse> startPaymentStrategy,
     IPaymentStepStrategy <string, PayPalConfirmResponse> confirmStrategy,
     ICompletePaymentStrategy <string, PayPalCompleteResponse, PayPalPayment> completeStrategy)
 {
     _onlinePaymentManager = onlinePaymentManager;
     _startPaymentStrategy = startPaymentStrategy;
     _confirmStrategy      = confirmStrategy;
     _completeStrategy     = completeStrategy;
 }