Skip to content
FEMNET

Set up Paystack payments

Connect the shop to Paystack.

IT teamDone in: Server4 steps
  1. 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. 2

    Set the backend values

    In .env, set SHOP_GATEWAY=paystack, PAYSTACK_BASE_URL=https://api.paystack.co, PAYSTACK_SECRET_KEY and SHOP_CALLBACK_URL=https://<learner-app-domain>/shop/checkout/return. Restart the backend.

  3. 3

    Register the webhook

    In Paystack, set the webhook URL to https://femnet-api.duckdns.org/api/v1/shop/paystack/webhook so payments are confirmed even if a learner closes the page.

  4. 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.

Related how-tos