Set up Paystack payments
Connect the shop to Paystack.
IT teamDone in: Server4 steps
- 1
Get your keys
In the Paystack dashboard, open Settings → API Keys & Webhooks and copy the secret key. Use the test key until everything works.
- 2
Set the backend values
In
.env, setSHOP_GATEWAY=paystack,PAYSTACK_BASE_URL=https://api.paystack.co,PAYSTACK_SECRET_KEYandSHOP_CALLBACK_URL=https://<learner-app-domain>/shop/checkout/return. Restart the backend. - 3
Register the webhook
In Paystack, set the webhook URL to
https://femnet-api.duckdns.org/api/v1/shop/paystack/webhookso payments are confirmed even if a learner closes the page. - 4
Test
Buy a cheap item with Paystack's test card, check it shows as Paid in Shop Orders, then switch to the live key.
