Skip to content

makecryptoio/makepay-strapi-plugin

Repository files navigation

Strapi Plugin MakePay

Strapi 5 server plugin for MakePay payment links, customers, bookkeeping invoices, and signed webhooks.

Features

  • POST /api/makepay/payment-links
  • GET /api/makepay/payment-links/:uid
  • POST /api/makepay/customers
  • POST /api/makepay/bookkeeping/invoices
  • POST /api/makepay/bookkeeping/invoices/:invoiceId/payment-link
  • POST /api/makepay/webhooks
  • Server-side credential handling through Strapi plugin config.
  • HMAC verification for X-MakePay-Signature.

Installation

npm install strapi-plugin-makepay

Enable and configure the plugin:

// config/plugins.ts
export default ({ env }) => ({
  makepay: {
    enabled: true,
    config: {
      baseUrl: env('MAKEPAY_BASE_URL', 'https://www.makecrypto.io'),
      keyId: env('MAKEPAY_KEY_ID'),
      keySecret: env('MAKEPAY_KEY_SECRET'),
      webhookSecret: env('MAKEPAY_WEBHOOK_SECRET'),
    },
  },
});

Create a Payment Link

curl -X POST http://localhost:1337/api/makepay/payment-links \
  -H 'content-type: application/json' \
  -d '{
    "payload": {
      "title": "Pro plan",
      "amount": "49.00",
      "currency": "USD",
      "returnUrl": "https://example.com/billing/return"
    }
  }'

Webhooks

Configure MakePay webhooks to:

https://your-strapi.example/api/makepay/webhooks

The webhook route verifies the raw body with X-MakePay-Signature before returning the decoded event payload.

Development

npm ci
npm test
npm run build
npm run validate

About

Strapi 5 server plugin for MakePay payment links and signed webhooks. Cryptocurrency payment gateway for direct self-custody merchant-wallet settlement, decentralized swaps, and 70+ coin/20+ chain auto-conversion.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors