Stripe synchronizer
Synchronizes customers from Stripe to Twenty
Requirements
- twenty-cli
npm install -g twenty-cli - an
apiKey. Go tohttps://twenty.com/settings/api-webhooksto generate one
Setup
- Synchronize app
twenty auth login
cd stripe-synchronizer
twenty app sync
- Go to Settings > Integrations > Stripe synchronizer > Settings and add values
Flow
- Retrieve webhook
- Check if it's either subscription created or updated
- Read customer ID, sub status and quantity
- Read customer data
- Check if customer company exists in Twenty, if not, create it
- Check if related person exists in Twenty, if not, create it and link to company
Todo
- add validation of signature key from Stripe to ensure that incoming request is valid