Exemplo n.º 1
0
 public StripeAdapter()
 {
     _customerService      = new Stripe.CustomerService();
     _subscriptionService  = new Stripe.SubscriptionService();
     _invoiceService       = new Stripe.InvoiceService();
     _paymentMethodService = new Stripe.PaymentMethodService();
     _taxRateService       = new Stripe.TaxRateService();
     _taxIdService         = new Stripe.TaxIdService();
     _chargeService        = new Stripe.ChargeService();
     _refundService        = new Stripe.RefundService();
     _cardService          = new Stripe.CardService();
     _bankAccountService   = new Stripe.BankAccountService();
 }
Exemplo n.º 2
0
        public Stripe.PaymentMethod DetachPaymentMethod(string paymentMethodId)
        {
            var service = new Stripe.PaymentMethodService();

            return(service.Detach(paymentMethodId));
        }
Exemplo n.º 3
0
        public Stripe.PaymentMethod GetPaymentMethod(string paymentMethodId)
        {
            var service = new Stripe.PaymentMethodService();

            return(service.Get(paymentMethodId));
        }