Stripe
UI Bakery allows you to easily connect to Stripe with no need for additional layers like APIs and 3rd-party services.
We will use HTTP API Datasource to connect to Stripe API.

Configuration

API key

To connect Stripe to UI Bakery, you will need to get an API key. The Stripe API uses API keys to authenticate requests. You can view and manage your API keys in the Stripe Dashboard. To find your API key, follow the path: Developers - API keys.
You can use a test key first for testing purpose, but will need a secret key to manage requests.
We recommend adding a separate secret key for UI Bakery usage. In this case, your UI Bakery based application will not be affected by any changes to your secret key.

Add a data source

  1. 1.
    Navigate the Data sources tab - click Connect.
  2. 2.
    Select HTTP API from the list. Rename the data source and specify the credentials: - Base URL: can be found in the Stripe API docs: https://api.stripe.com - Headers - Authorization: Bearer your_api_key
3. Click Connect datasource to establish the connection.

Authentication via cURL

If you don't want to add Stripe as a separate data source, you can use authentication cURL request instead. The example cURL can be found here.

Usage

Once you have connected Stripe to UI Bakery, you can manage your data. You can use any of Stripe's GET/POST APIs to read or write back to the data source. Check Stripe API documentation for more details on the requests.
  1. 1.
    To read your data from Stripe, add an HTTP action step and select your Stripe data source from the list.
  2. 2.
    Let's fetch the customers' list using the GET method. You can also use cURL if necessary:
3. Run the action and check the result.
Last modified 1mo ago
Copy link
Outline
Configuration
Usage