Provider · Bank

East Africa Bank direct integration

Bank-account based debit with EAB hosting the customer authentication step. Same shape as CAC: one initiate, a redirect, then a callback. Per-merchant UserName / Password credentials live in MerasPay's encrypted credential store.

RedirectC2B + B2C

Server-side

bashbash
curl -X POST https://api.merashub.com/v1/payment_intents \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 120000,
    "currency": "DJF",
    "provider": "eab",
    "customer_account": "EAB-0001234567",
    "return_url": "https://yoursite.example/orders/return"
  }'

Browser: redirect + return

tsts
const intent = await meras.retrievePaymentIntent(piId, cs);
window.location.href = intent.next_action.redirect_url;
// EAB → return_url → poll retrievePaymentIntent for status

Sandbox

Sandbox account EAB-0000000001 succeeds; EAB-0000000099 always declines.