Payment-link integration for Squarespace sites using Code Injection or Embed blocks plus a hosted MakePay relay.
- Small browser script for buttons with
data-makepay-product. - Server-side relay that owns product prices and MakePay credentials.
- MakePay hosted checkout redirect.
- Webhook verification for payment status updates.
- Works as a practical Squarespace extension-style service without depending on unsupported native checkout hooks.
Host public/embed.js and the relay on your infrastructure, then add a button:
<button data-makepay-product="consultation">Pay with MakePay</button>
<script src="https://payments.example.com/embed.js"
data-makepay-relay="https://payments.example.com"
defer></script>You can paste this into a Squarespace Code Block, footer Code Injection, or a custom section.
npm startEnvironment:
MAKEPAY_KEY_ID=...
MAKEPAY_KEY_SECRET=...
MAKEPAY_WEBHOOK_SECRET=...
MAKEPAY_PRODUCTS_JSON='{"consultation":{"title":"Consultation","amount":"49.00","currency":"USD"}}'Routes:
GET /embed.jsPOST /checkoutPOST /makepay/webhooks
Squarespace Extensions are third-party services that connect to a site. Current public commerce APIs focus on orders and inventory, so this repository uses a payment-link flow instead of pretending to be a native processor.
npm test
npm run validate