Private-app connector for creating MakePay payment links from HubSpot deals and writing the resulting link back to HubSpot.
- Fetches HubSpot deals through the CRM v3 Deals API.
- Creates MakePay hosted payment links using deal name, amount, currency, and metadata.
- Updates HubSpot deal properties with the MakePay URL and UID.
- Verifies MakePay webhooks with
X-MakePay-Signature. - Includes a small Node HTTP server for private app or workflow action usage.
HUBSPOT_PRIVATE_APP_TOKEN=...
MAKEPAY_KEY_ID=...
MAKEPAY_KEY_SECRET=...
MAKEPAY_WEBHOOK_SECRET=...
MAKEPAY_BASE_URL=https://www.makecrypto.io
HUBSPOT_PAYMENT_LINK_PROPERTY=makepay_payment_link
HUBSPOT_PAYMENT_LINK_UID_PROPERTY=makepay_payment_link_uidCreate the HubSpot deal properties before enabling deal updates.
npm startRoutes:
POST /hubspot/deals/:dealId/payment-linkPOST /makepay/webhooks
HubSpot's current app cards and UI extensions can call serverless functions or a private connector. This repo focuses on the server-side connector that those cards or workflow actions can call safely without exposing MakePay credentials to the browser.
npm ci
npm test
npm run validate