The Stripe Connector lets you do almost anything on Stripe. You need to provide your API key to the connector. All the options is documented on the Stripe API docs.
Create Customer
Creates a new customer with the provided options.
CreateCustomer(CustomerCreateOptions options);
Parameters:
options
– CustomerCreateOptions
Returns: The created Customer
object.
Update Customer
Updates an existing customer with the provided options.
UpdateCustomer(string customer_id, CustomerUpdateOptions options);
Parameters:
customer_id
– The ID of the customer to update.options
– CustomerUpdateOptions
Returns: The updated Customer
object.
Delete Customer
Deletes an existing customer.
DeleteCustomer(string customer_id);
Parameters:
customer_id
– The ID of the customer to delete.
Returns: The deleted Customer
object.
List Customers
Lists all customers.
List<Customer> ListCustomers();
Returns: A list of Customer
objects.
Create Subscription
Creates a new subscription with the provided options.
CreateSubscription(SubscriptionCreateOptions options);
Parameters:
options
– SubscriptionCreateOptions
Returns: The created Subscription
object.
Update Subscription
Updates an existing subscription with the provided options.
UpdateSubscription(string subscription_id, SubscriptionUpdateOptions options);
Parameters:
subscription_id
– The ID of the subscription to update.options
– SubscriptionUpdateOptions
Returns: The updated Subscription
object.
Delete Subscription
Cancels an existing subscription.
DeleteSubscription(string subscription_id);
Parameters:
subscription_id
– The ID of the subscription to cancel.
Returns: The canceled Subscription
object.
List Subscriptions
Lists all subscriptions.
List<Subscription> ListSubscriptions();
Returns: A list of Subscription
objects.
Create Coupon
Creates a new coupon with the provided options.
CreateCoupon(CouponCreateOptions options);
Parameters:
options
– CouponCreateOptions
Returns: The created Coupon
object.
Update Coupon
Updates an existing coupon with the provided options.
UpdateCoupon(string coupon_id, CouponUpdateOptions options);
Parameters:
coupon_id
– The ID of the coupon to update.options
– CouponUpdateOptions
Returns: The updated Coupon
object.
Delete Coupon
Deletes an existing coupon.
DeleteCoupon(string coupon_id);
Parameters:
coupon_id
– The ID of the coupon to delete.
Returns: The deleted Coupon
object.
List Coupons
Lists all coupons.
List<Coupon> ListCoupons();
Returns: A list of Coupon
objects.
Create Checkout Session
Creates a new checkout session with the provided options.
CreateCheckoutSession(SessionCreateOptions options);
Parameters:
options
– SessionCreateOptions
Returns: The created Checkout Session
object.
Create Product
Creates a new product with the provided options.
CreateProduct(ProductCreateOptions options);
Parameters:
options
– ProductCreateOptions
Returns: The created Product
object.
Update Product
Updates an existing product with the provided options.
UpdateProduct(string product_id, ProductUpdateOptions options);
Parameters:
product_id
– The ID of the product to update.options
– ProductUpdateOptions
Returns: The updated Product
object.
Delete Product
Deletes an existing product.
DeleteProduct(string product_id);
Parameters:
product_id
– The ID of the product to delete.
Returns: The deleted Product
object.
List Products
Lists all products.
List<Product> ListProducts();
Returns: A list of Product
objects.
Create Price
Creates a new price with the provided options.
CreatePrice(PriceCreateOptions options);
Parameters:
options
– PriceCreateOptions
Returns: The created Price
object.
Update Price
Updates an existing price with the provided options.
UpdatePrice(string price_id, PriceUpdateOptions options);
Parameters:
price_id
– The ID of the price to update.options
– PriceUpdateOptions
Returns: The updated Price
object.
List Prices
Lists all prices.
List<Price> ListPrices();
Returns: A list of Price
objects.
Create Invoice
Creates a new invoice with the provided options.
CreateInvoice(InvoiceCreateOptions options);
Parameters:
options
– InvoiceCreateOptions
Returns: The created Invoice
object.
Update Invoice
Updates an existing invoice with the provided options.
Invoice UpdateInvoice(string invoice_id, InvoiceUpdateOptions options);
Parameters:
invoice_id
– The ID of the invoice to update.options
– InvoiceUpdateOptions
Returns: The updated Invoice
object.
Delete Invoice
Deletes an existing invoice.
DeleteInvoice(string invoice_id);
Parameters:
invoice_id
– The ID of the invoice to delete.
Returns: The deleted Invoice
object.
List Invoices
Lists all invoices.
List<Invoice> ListInvoices();
Returns: A list of Invoice
objects.
Create Refund
Creates a refund for a charge or a payment intent with the provided options.
CreateRefund(RefundCreateOptions options);
Parameters:
options
– RefundCreateOptions
Returns: The created Refund
object.
Update Refund
Updates an existing refund with the provided options.
UpdateRefund(string refund_id, RefundUpdateOptions options);
Parameters:
refund_id
– The ID of the refund to update.options
– RefundUpdateOptions
Returns: The updated Refund
object.
Delete Refund
Cancels an existing refund.
Refund DeleteRefund(string refund_id);
Parameters:
refund_id
– The ID of the refund to cancel.
Returns: The canceled Refund
object.
List Refunds
Lists all refunds.
List<Refund> ListRefunds();
Returns: A list of Refund
objects.
Parameters:
options
– PaymentIntentCreateOptions
Returns: The created PaymentIntent
object.
Create Payment Intent
Creates a new payment intent with the provided options.
CreatePaymentIntent(PaymentIntentCreateOptions options);
Parameters:
options
– PaymentIntentCreateOptions
Returns: The created PaymentIntent
object.
Update Payment Intent
Updates an existing payment intent with the provided options.
UpdatePaymentIntent(string paymentIntent_id, PaymentIntentUpdateOptions options);
Parameters:
paymentIntent_id
– The ID of the payment intent to update.options
– PaymentIntentUpdateOptions
Returns: The updated PaymentIntent
object.
Delete Payment Intent
Cancels an existing payment intent.
DeletePaymentIntent(string paymentIntent_id);
Parameters:
paymentIntent_id
– The ID of the payment intent to cancel.
Returns: The canceled PaymentIntent
object.
List Payment Intents
Lists all payment intents.
List<PaymentIntent> ListPaymentIntents();
Returns: A list of PaymentIntent
objects.
Create Payment Method
Creates a new payment method with the provided options.
CreatePaymentMethod(PaymentMethodCreateOptions options);
Parameters:
options
– PaymentMethodCreateOptions
Returns: The created PaymentMethod
object.
Update Payment Method
Updates an existing payment method with the provided options.
UpdatePaymentMethod(string paymentMethod_id, PaymentMethodUpdateOptions options);
Parameters:
paymentMethod_id
– The ID of the payment method to update.options
– PaymentMethodUpdateOptions
Returns: The updated PaymentMethod
object.
Delete Payment Method
Detaches an existing payment method from a customer.
DeletePaymentMethod(string paymentMethod_id);
Parameters:
paymentMethod_id
– The ID of the payment method to detach.
Returns: The detached PaymentMethod
object.
List Payment Methods
Lists all payment methods.
List<PaymentMethod> ListPaymentMethods();
Returns: A list of PaymentMethod
objects.
List Files
Lists all files.
List<File> ListFiles();
Returns: A list of File
objects.