Framer Code Component for MakePay hosted checkout links, backed by a server-side relay.
- Drop-in
MakePayButtonReact/Framer Code Component. - Framer property controls for relay URL, product ID, label, colors, and radius.
- Server-side relay keeps MakePay credentials and prices off the page.
- MakePay webhook verification.
Copy components/MakePayButton.tsx into a Framer Code file, then configure:
- Relay URL
- Product ID
- Button label
The component posts only the selected product ID and current page URL to the relay. The relay creates a MakePay hosted checkout and returns the redirect URL.
npm startMAKEPAY_KEY_ID=...
MAKEPAY_KEY_SECRET=...
MAKEPAY_WEBHOOK_SECRET=...
MAKEPAY_PRODUCTS_JSON='{"launch_offer":{"title":"Launch Offer","amount":"29.00","currency":"USD"}}'Routes:
POST /checkoutPOST /makepay/webhooks
This repository follows Framer's Code Component model and can later be wrapped in a plugin that inserts the component into a project.
npm test
npm run validate