Skip to main content

Stripe

The Stripe connector enables you to build your payment infrastructure in a matter of minutes. You can build your Apps interface on top of the payment data. You can find the connector beneficial to get customer details, create customers, initiate refunds, and others for your Stripe account.

Prerequisite

  1. Stripe API Key: Obtain an API key from Stripe by signing up for an account and creating a new API key. This key is required to authenticate your requests when using the Stripe Connector.

  2. Environment Setup: Ensure you have a development environment capable of making HTTP requests to external APIs. This could involve using programming languages like Python, JavaScript, or any language that supports HTTP requests.

Configuring API Connector in DronaHQ

Add a Account name. Then add the API key for the connector account. Once all details are added, click Save. Your connector configuration is now done.

Stripe with configuration details.
Stripe with configuration details.

After successfully configuring and saving the connector settings, you can easily access your newly connected account by navigating to the connected accounts list. You can find this option from the Connector -> Manage Account section. This centralized location allows you to conveniently monitor and manage your connected accounts.

Supported API endpoints

ActionDescription
GetAccountRetrieve details about the connected Stripe account.
GetCustomerListFetch a list of customers associated with your Stripe account.
CreateCustomerCreate a new customer profile within your Stripe account.
UpdateCustomerUpdate an existing customer's information within your Stripe account.
GetAllChargesRetrieve a list of all charges made through your Stripe account.
InitiateRefundInitiate a refund for a specific payment using its charge ID.
CreateProductCreate a new product within your Stripe account.
GetProductDetailsFetch details about a specific product using its ID.
ListAllProductsRetrieve a list of all products within your Stripe account.
DeleteProductDelete a product using its ID from your Stripe account.
ListAllPricesRetrieve a list of all prices associated with your Stripe account.
CreatePriceCreate a new price for a product within your Stripe account.
CreatePriceRecurringCreate a recurring price for a product with subscription intervals.
GetPriceDetailsFetch details about a specific price using its ID.
CreatePaymentLinkGenerate a payment link for receiving payments outside of your Stripe-integrated app.
ListAllPaymentLinksRetrieve a list of all payment links created in your Stripe account.
GetPaymentLinkDetailsFetch details about a specific payment link using its ID.

Using Stripe connector

Get Customers

We'll explore how to retrieve a list of Customers, a significant resource within your Stripe account. Customer details encompass profiles, billing, tax information, as well as shipping and billing addresses. You may need to retrieve customer data for various purposes, such as payment collection and invoicing.

Follow these steps to retrieve customer data using the Stripe connector:

  1. Begin by connecting your Stripe account, as we've previously demonstrated.
  2. Integrate a Table Grid control into your form.
  3. Navigate to Bind Data Option -> Quick Select -> Connector Library, select the Stripe Connector from the list of connectors and proceed.
  4. Choose the GetCustomers action from the available options.
  5. Authenticate the connected account and proceed.
  6. Configure the connector fields as required, select the display keys, and save your settings.

Upon running the form, you'll witness the customer list within the Table Grid. Additionally, you can create an Action Flow or Workflow for more advanced functionality.

Customer List
Customer List

Adding a Customer

Suppose you wish to add a customer to your Stripe account. In that case, design a form incorporating an action button. Configure an Action Flow that triggers the Stripe Connector to achieve this.

Customer List
Customer List
  1. Under Action Flow -> Server Side Actions, opt for the Stripe Connector.
  2. Select the CreateCustomer action from the available choices.
  3. Authenticate the connected account and proceed.
  4. Fill in the connector configuration fields, using keywords to link controls to respective fields.
Customer List
Customer List
  1. Add a connector name and any execution condition, then finish the setup.

Now, when users submit data through the form, the action flow will generate a new customer entry within your Stripe Account. You can also extend this functionality by integrating other connectors, like Shopify and Stripe, to create a comprehensive refund tool.

For a practical example of building a refund tool by integrating Shopify and Stripe, refer to this instructional video.