WEYSURE for developers

Add buyer protection to your checkout.

Create an escrow for each order, send your customer to a WEYSURE payment link, and react to webhook events. Release, refund, split or hold the money from your own system. API access is open and test keys need no checks. Live keys need your Tier 2 identity check, and live use is capped until your business is verified.

The flow

What does an integration look like?

One request creates the escrow and returns a payment link. When the customer pays, a webhook tells your server. Samples are examples: the live schema is in the developer console.

Create an escrowexample
POST /api/v1/public/escrow
X-API-Key: <your key>

{
  "amount": 420000,
  "reference": "order_2207",
  "description": "Office chair, black",
  "customer_name": "Ada Okafor",
  "customer_email": "[email protected]"
}
Response, trimmedexample
200 OK

{
  "escrow_id": "<escrow id>",
  "reference": "order_2207",
  "status": "pending_payment",
  "escrow_amount": 420000,
  "currency": "NGN",
  "payment_url": "https://<api host>/api/v1/pay/<escrow id>"
}
Webhook receivedexample
POST https://your-store.example/hooks
X-Weysure-Event: escrow.payment_successful
X-Weysure-Signature: <hex signature>

{
  "event": "escrow.payment_successful",
  "escrow_id": "<escrow id>",
  "reference": "order_2207",
  "amount": 420000,
  "currency": "NGN",
  "status": "funded"
}
Getting started

How do I get from account to first live order?

  • 01

    Open an account

    Sign up and verify your email, then open the developer portal. Ticking the business or API option at sign-up switches API access on for you; otherwise it is one click and needs no review. Test keys never move real money.

  • 02

    Add a payout account

    Required before creating any deal. It is verified. After the first one, it can be changed once every 30 days.

  • 03

    Point webhooks at your server

    Verify the signature on every message and handle repeats safely: each delivery carries an idempotency key.

  • 04

    Go live

    Switch to your live key, which needs your Tier 2 identity check. Until your business is verified (apply under Settings, Business), live use is capped at ₦200,000 in total and ₦50,000 for any one deal.

Control

What can I do with each order?

You decide what happens to each paid order. Every action moves the money in one locked step.

  • release

    Pay yourself after delivery, to your verified bank account.

  • refund

    Return the order amount to the customer, plus the platform fee when the refund ends the deal. The card processing fee is not returned.

  • split

    Share the money between you and the customer.

  • hold

    Pause for up to 90 days while you investigate.

Webhooks

Which events does WEYSURE send?

Each message is signed with your webhook secret (header X-Weysure-Signature). Every active webhook receives every event, so filter on your side by the X-Weysure-Event header. A failed delivery is retried automatically and the same event can arrive more than once: ignore repeats by the delivery id or the Idempotency-Key header. Some events are sent only when the matching safety feature is switched on for you. Every delivery attempt is logged in the developer console.

Webhook events WEYSURE sends today
EventWhen it is sent
escrow.createdAn escrow was created and is waiting for payment.
escrow.payment_successfulThe customer paid. The status is now funded.
escrow.releasedThe money was released to you.
escrow.refundedThe money went back to the customer: the order amount, plus the platform fee when the refund ended the deal.
escrow.split_processedThe money was split between you and the customer.
escrow.on_holdThe escrow was put on hold.
escrow.hold_resolvedThe hold ended and the escrow is funded again.
escrow.hold_expiredA hold ran out its time limit.
escrow.payment_expiredThe payment link expired before the customer paid.
escrow.payment_refundedA payment that arrived late was refunded to the customer.
escrow.payout_successfulThe payout to your bank account succeeded.
escrow.payout_failedThe payout to your bank account failed.
escrow.payout_reversedThe payout to your bank account was reversed by the bank.
escrow.auto_release_upcomingAn automatic release is about to happen.
escrow.auto_release_rescheduledThe automatic release date moved.
escrow.auto_release_blockedAn automatic release could not go ahead, for example because the payout account was refused.
escrow.auto_release_failedAn automatic release failed.
escrow.closed_card_disputeThe deal was closed because the customer's card payment was disputed.
escrow.card_dispute_clearedThe card dispute was cleared.
escrow.manual_review_clearedA manual review of the deal ended.
Environments

How are test and live kept apart?

Test key compared with live key
Test keyLive key
Real moneyNeverYes, through Paystack
CostNo real chargeThe escrow fee and the card charge, paid by the customer (see pricing)
LimitsNot applicable, no real money₦200,000 in total and ₦50,000 for any one deal, until your business is verified
Usage logsYesYes

Tell us what you are building.

Open an account and tick the business or API option. Already have a developer account? Your console is where it was.

Questions first? Contact us and choose the API topic.