public StripePayementAdapter(IStripePaymentGatewayConfiguration stripePaymentGatewayConfiguration, IList <PaymentHistory> paymentHistories, IPaymentRecord paymentRecord) { _stripePaymentGatewayConfiguration = stripePaymentGatewayConfiguration; _paymentHistories = paymentHistories; _paymentRecord = paymentRecord; }
public BraintreePaymentAdapter(IBraintreePaymentGatewayConfiguration braintreePaymentGatewayConfiguration, IList <PaymentHistory> paymentHistories, IPaymentRecord paymentRecord) { _braintreePaymentGatewayConfiguration = braintreePaymentGatewayConfiguration; _paymentHistories = paymentHistories; _paymentRecord = paymentRecord; _gateway = ConstructGateway(); }
// A repoisitory that creates a record on our database // this is good as we do not have a record for the payment such as card information // however we can cross check against Stripe/Braintree at any point in time with the references on our database/ public bool CreateRecord(IPaymentRecord paymentRecord) { return(true); }
public void Save(IPaymentRecord payment) { _commonDao.SaveOrUpdateObject(payment); }