コード例 #1
0
 public StripePayementAdapter(IStripePaymentGatewayConfiguration stripePaymentGatewayConfiguration,
                              IList <PaymentHistory> paymentHistories, IPaymentRecord paymentRecord)
 {
     _stripePaymentGatewayConfiguration = stripePaymentGatewayConfiguration;
     _paymentHistories = paymentHistories;
     _paymentRecord    = paymentRecord;
 }
コード例 #2
0
 public BraintreePaymentAdapter(IBraintreePaymentGatewayConfiguration braintreePaymentGatewayConfiguration,
                                IList <PaymentHistory> paymentHistories, IPaymentRecord paymentRecord)
 {
     _braintreePaymentGatewayConfiguration = braintreePaymentGatewayConfiguration;
     _paymentHistories = paymentHistories;
     _paymentRecord    = paymentRecord;
     _gateway          = ConstructGateway();
 }
コード例 #3
0
 // 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);
 }
コード例 #4
0
 public void Save(IPaymentRecord payment) {
     _commonDao.SaveOrUpdateObject(payment);
 }