Package Exports
- @particular./sync-stripe-to-zendesk
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@particular./sync-stripe-to-zendesk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@particular./sync-stripe-to-zendesk
Add a Zendesk Sunshine Evenet when payment refunded in Stripe
Asynchronous microservice that is triggered by Stripe webhooks to create a Sunshine Event inside of Zendesk.
Built with Micro! 🤩
🛠 Setup
Both a Zendesk and Stripe account are needed for this to function.
Create a .env at the project root with the following credentials:
STRIPE_SECRET_KEY=
ZENDESK_INTEGRATION_EMAIL=
ZENDESK_INTEGRATION_SECRET=Find your STRIPE_SECRET_KEY within Stripe's API Settings.
TODO: add instructions on ZENDESK keys above
📦 Package
Run the following command to build the app
yarn installStart the development server
yarn devThe server will typically start on PORT 3000, if not, make a note for the next step.
Start ngrok (change ngrok port below from 3000 if yarn dev deployed locally on different port above)
ngrok http 3000Make a note of the https 'URL' ngrok provides.
⛽️ Usage
Next head over to the Stripe Webhook Settings area, add a new webhook with the following details:
| URL to be called | Webhook version | Filter event |
|---|---|---|
ngrok URL above |
2018-05-21 (Default) |
'Select types to send' > charge.refunded |
🚀 Deploy
You can easily deploy this function to now.