This folder contains the source files merchants copy into Wix Velo to create a custom hosted MakePay payment method.
Backend/MakePay.jsBackend/http-functions.jsMakePayPayment/MakePayPayment-config.jsMakePayPayment/MakePayPayment.js
- Enable Developer Mode in the Wix editor.
- Create backend files under Public & Backend > Backend:
MakePay.jsandhttp-functions.js. - Create a Service Plugins > Payment plugin named
MakePayPayment. - Copy
MakePayPayment-config.jsandMakePayPayment.jsinto that plugin. - Install the
crypto-jsnpm package in Wix. - Add these Wix secrets under Developer Tools > Secrets Manager:
makepay_api_key_secretmakepay_webhook_secret
- In Wix Settings > Accept payments, connect MakePay with:
- MakePay company ID
- MakePay API key ID
- Settlement currency, for example
USDT
- In MakeCrypto MakePay payment settings, set the callback URL to:
https://your-wix-domain.com/_functions/makepay_notify
The API key should have MakePay payment-link read/write permissions. The webhook secret should match the MakePay webhook secret for the company.