Performance Academy — fake Jèko server

A dev-only stand-in for Jèko, speaking its dialect: it takes payment requests, shows a checkout, posts the signed TRANSACTION_COMPLETED webhook, and sends the browser back to successUrl or errorUrl.

Loopback only. Never deploy this. Anyone who can reach it can have it sign a webhook with the secret the API trusts.

Configuration in effect

  • PORT3011
  • WEBHOOK_URLhttps://api-staging.guyapps.org/payments/jeko/webhook
  • WEBHOOK_SECRETset · sha256 dbdf4f7b6f41…

Webhooks coming back 401? Compare the fingerprint with printf '%s' "<secret>" | shasum -a 256 on the API's secret.

Try it without the API

Opens a 5 000 F payment request whose return URLs come back to this page. The webhook still goes to WEBHOOK_URL.

Endpoints

MethodPathPurpose
POST/partner_api/payment_requestsJèko's: create a payment request, answer { redirectUrl, … }.
GET/pay_request/pr/{id}The checkout the browser is sent to.
POST/pay_request/pr/{id}/payPost the webhook, answer { redirectUrl: successUrl }. Takes the dev controls.
POST/pay_request/pr/{id}/backAnswer { redirectUrl: errorUrl }, no webhook.
GET/transactionsIn-memory log of everything that happened.
GET/health{"status":"ok"}