Skip to content
Sign inStart free

Developers

Pay by bank in your own code.

Four calls make your first test payment. Then follow it to the bank and back. Every answer on this page is a real one.

sandbox.socialmatterspay.com · four calls
  1. POST /v1/payers201 a payer, Ada
  2. POST /v1/bank-accounts/sandbox-link201 her bank, "verified"
  3. POST /v1/payments/authorization-text200 the words she agrees to
  4. POST /v1/payments201 $84.00, "submitted"

Plugin or code. Same rail.

Pick the way in that fits your site. The payment runs the same line after it.

The plugin

WooCommerce, no code.

Your customer pays in our pop-up, and Finicity connects their bank. It suits every kind of business we take.

Your code

The API on this page.

Plaid Link connects your customer’s bank. It is for businesses outside the high-risk categories.

Either way, you choose one word, up to 8 letters. The customer’s bank statement shows it as HARBOR SOC PAY. Our pop-up and receipts say Harbor Social Payments.

1requested

One request starts the payment.

Amounts are whole cents. Send the payer’s IP and browser from checkout. Add the SHA-256 of the words they agreed to.

POST /v1/payments
Authorization: Bearer sk_sandbox_…
Idempotency-Key: order_10482-d035
Content-Type: application/json

{
  "bank_account_id": "46e2a703-ce21-4329-a81c-67ad1da36471",
  "payer_id": "8011cec6-24d7-44a5-86b8-10d3a779d302",
  "amount_cents": 8400,
  "entry_code": "WEB",
  "payer_ip": "203.0.113.7",
  "payer_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
  "authorization_text_sha256": "3ae8e55d5367539e892058d7e5e9aa1d4e27124d9a45a93536162404279b05d7",
  "external_order_id": "order_10482"
}

The answer, as the sandbox gave it

201 Created

{ "data": {
    "id": "38649e96-a42a-4482-99cb-95c8ec1d1469",
    "status": "submitted",
    "amount_cents": 8400,
    "fee_cents": 106,
    "net_cents": 8294,
    "risk_score": 65,
    "bank_reference": "sbt_96335817-2c55-477e-ae71-3161c4cf07ed",
    "submitted_at": "2028-03-01T06:14:37.240Z"
  } }

2checked

Checked before any bank call.

Your limits, then the payer: 3 payments an hour, 5 a day, $5,000 a day. Your account: 30 payments a minute.

If a check fails, the bank never hears about it.

From the payment’s own history

"pending_authorization" to "authorized"  2028-03-01T06:14:37.240Z

webhookpayment.authorized

X-SMP-Signaturef9e1b254439c1abe…71c619dd

3at their bank

On its way to their bank.

The debit goes to the payer’s bank, so your request already answered submitted.

Same second as the request

"authorized" to "submitted"  2028-03-01T06:14:37.240Z

4settled

In the sandbox, you move the clock.

Live, the payer’s bank sets the pace. In the sandbox, one call moves your clock a day and runs settlement.

POST /v1/sandbox/advance

{
  "seconds": 86400
}

200 OK
{ "data": {
    "object": "sandbox_clock",
    "now": "2028-03-02T06:14:40.792Z",
    "returns_processed": 0
  } }

webhookpayment.settled

X-SMP-Signature9d46f0afe2bfd37b…4aa17b2e

The payer’s bank paid. The amount is in your balance to the cent.

5released

Released for payout, in order.

It is released under your agreement. A payment’s history only moves forward.

GET /v1/payments/38649e96…

200 OK
{ "data": {
    "status": "released",
    "net_cents": 8294,
    "settled_at": "2028-03-01T06:15:37.727Z",
    "released_at": "2028-03-02T06:14:38.604Z"
  } }

webhookpayment.released

X-SMP-Signatured9997393075c306f…1d2210cf

If it bounces, it comes off the next payout

Try a returned debit in the sandbox. It is booked on the next clock move.

POST /v1/sandbox/return

{ "payment_id": "38649e96-a42a-4482-99cb-95c8ec1d1469", "code": "R01" }

202 Accepted

webhookpayment.returned

X-SMP-Signature6f905c2452eaf093…59e0fa01

Every no comes with a reason.

A declined payment carries one fixed code and its sentence. The payer’s own data never comes back to you.

  1. insufficient_fundsThe bank account does not have enough available to cover this payment.
  2. balance_unavailableA live balance could not be read for this bank account; payments above $500.00 need one.
  3. merchant_limit_exceededThe payment is over one of your account's per-payment, daily or monthly limits.
  4. merchant_return_rate_limitYour account's unauthorized return rate is at the limit; payments are paused.
  5. velocity_limitToo many payments from this payer in a short time.
  6. bank_rejectedThe bank rejected the debit.
  7. risk_declinedThe payment did not pass risk checks.

A whole account can pause too. This answer is from our own test account.

403 Forbidden

{
  "error": "payments_paused",
  "resumes_after": "2028-02-19T04:34:36.352Z"
}

Its message says why, in words, and when it lifts.

Send a request twice and nothing doubles.

  • 200Same Idempotency-Key, same body: the same payment back.
  • 409Same key, a different body: refused.

Webhooks you can check.

Each one is signed with your secret. Check the signature, then trust the body.

What reaches your server. The signature is real, made with an example secret

POST https://yoursite.example/smp
X-SMP-Event: payment.settled
X-SMP-Timestamp: 1793030531
X-SMP-Signature: 9d46f0afe2bfd37bb245559d187b405380fcaa2153debae0715fa1254aa17b2e

{"id":"…","event":"payment.settled","created_at":"2026-10-26T16:02:11Z","data":{…}}

Check it in your code

import crypto from 'node:crypto';

function verify(headers, rawBody, secret) {
  const ts = headers['x-smp-timestamp'], sig = headers['x-smp-signature'] || '';
  if (Date.now() / 1000 - Number(ts) > 300) return false;
  const want = crypto.createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex');
  return sig.length === 64 && crypto.timingSafeEqual(Buffer.from(want), Buffer.from(sig));
}

No 2xx from you? We send it again, four more times.

  1. 30 s
  2. 2 min
  3. 10 min
  4. 1 h

Each body is sent byte for byte. Remove repeats by its id.

Subscribe to any of these, or * for all.

payment

payment.authorizedpayment.declinedpayment.settledpayment.releasedpayment.returnedpayment.voidedpayment.refunded

payout

payout.initiatedpayout.settledpayout.failed

fee

fee.assessed

invoice

invoice.paidinvoice.partially_paidinvoice.overdue

bank account

bank_account.disconnectedbank_account.relink_requiredbank_account.relink_recommendedbank_account.owner_changed

AI tools

Bring your AI. We bring the bank.

We run payments for small businesses, and there are two of us. We build with every tool we can get. So should you.

Point Claude Code, Codex, Cursor or Copilot at our docs. Every example is a real call from our sandbox, so what it copies works.

Shopping is changing too. An AI can fill a cart. The payer still signs in to their own bank and says yes, every time.

youAdd pay by bank to my checkout. The docs are at socialmatterspay.com/llms.txt

  1. POST /v1/payers201 a payer, Ada
  2. POST /v1/bank-accounts/sandbox-link201 her bank, "verified"
  3. POST /v1/payments/authorization-text200 the words she agrees to
  4. POST /v1/payments201 $84.00, "submitted"
An example session. The calls and answers are from our sandbox recording.

Harbor Social Payments$84.00

Approve this payment

Chase ••1234 · $84.00

By completing this payment, you authorize Harbor Social Payments to initiate a one-time electronic debit of $84.00 from your bank account ending in 1234. You may revoke this authorization at any time by contacting Harbor Social Payments, with the understanding that it may take up to 3 business days to process.

Pay by bank
However the cart was filled, this step is the payer’s.

Keys, hosts and the reference.

Sandbox
sk_sandbox_… on https://sandbox.socialmatterspay.com. It moves test money only.
Live
sk_live_… on https://api.socialmatterspay.com, once a person has checked your build. A sandbox key is refused live, and a live key in the sandbox.
Every call
Authorization: Bearer with your key. Amounts in whole cents. Calls that move money require an Idempotency-Key.
Test bank
POST /v1/payers, then POST /v1/bank-accounts/sandbox-link, links a test checking account without a bank login.
  1. pending_authorization
  2. authorized
  3. submitted
  4. settled
  5. released
  6. paid_out

It can also end declined, returned, voided or refunded. Signatures on this page are real HMAC-SHA256 values. They use an example secret and timestamp 1793030531.

Get your sandbox keys.