{"repo":"FriendlyCaptcha/friendly-stripe-sync","free":true,"listed":false,"github":"https://github.com/FriendlyCaptcha/friendly-stripe-sync","clone":"git clone https://github.com/FriendlyCaptcha/friendly-stripe-sync.git","description":"Sync your Stripe data to your Postgres database","language":"Go","stars":19,"topics":["postgres","postgresql","stripe","sync"],"license":"MIT","category":"databases-storage","readme_excerpt":"friendly-stripe-sync Load and periodically synchronize data from Stripe to a Postgres database. How it works 1. Creates a schema called stripe in the postgres database with all the needed tables 2. Loads the initial data from Stripe and populates the tables 3. Periodically calls the /events endpoint of Stripe to load changes and update the database Supported Data Types friendly-stripe-sync currently supports products, prices, customers, subscriptions, subscription items, and coupons. The data is updated using the following events: - [x] customer.created - [x] customer.updated - [x] customer.deleted - [x] product.created - [x] product.updated - [x] product.deleted - [x] customer.subscription.created - [x] customer.subscription.updated - [x] customer.subscription.paused - [x] customer.subscription.deleted - [x] price.created - [x] price.updated - [x] price.deleted Installation Usage Setup Database Before running the friendly-stripe-sync service you will want to migrate your database to create the necessary tables. Load the existing Stripe data To load the initial dataset (required if you have data older than 30 days in your Stripe account). 2 Synchronize once To load recent changes since the initial load you can synchronize once. This will work for changes that are up to 30 days old. Synchronize and watch If you want to keep your database up to date you should consider running the synchronization periodically. This will load the initial data if it hasn't been loaded already and","default_branch":null,"files":null,"tree":[],"storefront":"/r/FriendlyCaptcha","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/FriendlyCaptcha/friendly-stripe-sync/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}