Click “Check connection”. Fiber will make sure that it can access a database using the connection string you specified. If everything works, a new button will appear.
Finally, click the “Create destination” button.
2. Create a source
Next we will create a source in your workspace to pull data from Stripe:
Click the “New Source” button inside the Sources page. A dialog will pop up.
Click the dropdown to select “Stripe” as the source provider. New inputs will appear asking you for more information.
Paste the Private Key of the Stripe account that owns the Stripe app you'll be using.
Click “Verify Credentials”. Fiber will check that your id and secret values are valid.
Finally, click the “Create Source” button.
3. Create a sync
Now that you have a source and a destination, you can create a sync connecting the two.
Click the “New Sync” button inside your Syncs page. A dialog will pop up.
Choose a name for your sync. You must use lowercase characters and underscores. A simple "stripe-sync" will do.
Use the two dropdown menus to choose the source and destinations we just created.
Click “Create sync”. You will be directed to the Overview tab of your new sync.
4. Create collections
Now it’s time to choose what types of data you want out of Stripe. You can do that by creating a Collection for each resource you want to load.
From the sync Overview page, click the “Collections” tab.
Click the “New Collection” button. A dialog will show up.
Use the dropdown to choose "Charges".
Click “Mount collection”. Fiber will now try to create the “stripe_charges table inside your Postgres database.
Once the collection is mounted successfully, you’ll be redirected to the new collection pa
5. Add a Stripe account
You’re now ready to get some data flowing through your sync. All you need now is a Stripe account to pull data from.
There are three ways to add a new Stripe account to an existing sync:
For most supported sources (including Stripe), Fiber will attempt to validate
the credentials you pass. That may cause these requests to longer than usual, so
be prepared for that.
On success, the new account will be attached to your sync:
The “accounts” tab of the Stripe sync after you register a valid store.
Within two minutes, Fiber will start loading orders from this store into your database.
In the Overview tab, you will see new activity:
Your sync Overview tab after you register your first Stripe account.
What’s next?
Congratulations! You have successfully set up your first integration using
Fiber. From here, you can continue to customize your app by adding more sources,
destinations, and syncs.