Node service for integrating MakePay hosted payment links with commercetools Composable Commerce Payments.
- HTTP endpoint for commercetools Payment API Extensions.
- Creates MakePay payment links from Payment amount and cart/order metadata.
- Returns commercetools update actions for
interfaceIdand custom fields. - Verifies MakePay webhooks with
X-MakePay-Signature. - Designed to run as a regular HTTPS service or a future commercetools Connect service application.
POST /commercetools/extensions/payments
Configure a commercetools API Extension for Payments create/update triggers.
The Payment custom type should include:
makepayPaymentLinkUrlmakepayPaymentLinkUid
MAKEPAY_KEY_ID=...
MAKEPAY_KEY_SECRET=...
MAKEPAY_WEBHOOK_SECRET=...
MAKEPAY_BASE_URL=https://www.makecrypto.io
MAKEPAY_RETURN_URL=https://shop.example.com/payment-returncommercetools recommends API Extensions for synchronous validation/update flows and Subscriptions for asynchronous event processing. This connector keeps the synchronous path small and only returns Payment update actions.
npm test
npm run validate