示例#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();
 }
        public Stripe.PaymentMethod DetachPaymentMethod(string paymentMethodId)
        {
            var service = new Stripe.PaymentMethodService();

            return(service.Detach(paymentMethodId));
        }
        public Stripe.PaymentMethod GetPaymentMethod(string paymentMethodId)
        {
            var service = new Stripe.PaymentMethodService();

            return(service.Get(paymentMethodId));
        }