Skip to content
§ 00Payments API for software companiesEarly access · by invitation

MerchSDK gives your software one API and drop-in components for cards and ACH. Merchants connect the gateway accounts they already have, choose where each payment goes, and fall back to another gateway when a charge fails.

Onboarding software companies now, sandbox first

POST /v1/transactions/saleSample
merchant
mer_7Rk2pQ
amount
12500 · USD
card
ev:Tk9D:jR4w…a1Qe:$Visa ·· 4242
  1. Attempt 1 · Authorize.net

    con_aN3t01 · error · processor_unavailable

    Retryable. Trying the next connection.

    09:14:02
  2. Attempt 2 · NMI

    con_nM1x02 · approved · auth 0F7Q2C

    09:14:03
  3. transaction.succeeded

    Signed webhook sent to your endpoint

    09:14:03
Status approved on the second attempt. Refunds go back to NMI.
  • GW8 launch gateways, with more added through our adapter kit
  • ENCCard and bank data encrypted in the browser, never on your servers
  • RTEDefault, fallback and per-charge routing for every merchant
  • WEBWeb checkout and components. No terminals, no boarding
§ 01Why MerchSDKOne integration, many gateways

Every gateway is its own integration. It doesn't have to be yours.

Your merchants already have gateway accounts, and they don't all use the same one. Without a common layer, each new gateway means another SDK, another card form and another set of decline codes, and cards can't follow a merchant who switches.

Coding each gateway compared with MerchSDK
TopicCoding each gatewayWith MerchSDK
Gateways to integrateA separate API, SDK and test suite for each oneOne API for all of them
Card and bank formsBuilt per gateway, often inside your PCI scopeOur iframes; your server only sees ciphertext
Decline codesEach gateway's own codes and messagesOne normalized code, with the raw code passed through
A soft decline or gateway outageThe sale failsWe try the next connection in the merchant's fallback order
Merchant switches gatewaysCustomers re-enter their cardsSaved cards and bank accounts keep working
Refund after a switchYou track down where the sale ranIt goes to the connection that approved the sale
§ 02What you embedServed from js.merchsdk.com

Components that run inside your software.

Each one loads in an iframe that only our code and Evervault's can run in, and only on the domains you approve. You style the page around it; we handle the card data and the gateway logic.

  • CARDCard formEncrypted number, expiry and CVC
  • ACHACH formRouting check, account type and the customer's authorization
  • SETMerchant settingsConnect gateways, set default and fallback order
  • UPDUpdate payment methodCustomers replace a saved card or account
  • PRCPrice displaySurcharge or card and cash prices before paying
  • WALApple Pay and Google PayWallet buttons, sent to any gateway that takes them
  • 3DS3D Secure stepFrictionless or challenge flow
  • PAYHosted payment pageAll of the above on pay.merchsdk.com
your-software.com/settings/paymentsSample

Payment gateways

Where your payments go

Drag to set the order. If a charge fails on one gateway, we try the next.

  • 01

    Authorize.net

    con_aN3t01 · Default · cards and ACH

    Connected
  • 02

    NMI

    con_nM1x02 · Fallback 1 · cards

    Connected
  • 03

    Stripe

    con_sT9r03 · Not in routing

    Raw card access off
Sample merchant settings: Authorize.net is the default, NMI is the first fallback, and Stripe is connected but needs raw card data access before it can take payments.

The merchant settings component reads each gateway's definition, so a newly added gateway shows up in your software without a release on your side.

§ 03How a charge flowsSix steps, one call from you

You make one call. We handle the gateway.

  1. 01MerchantConnects gateway accounts in the settings component and sets the default and fallback order.
  2. 02CustomerPays by card, ACH or wallet in our components. Evervault encrypts the data before it leaves the browser.
  3. 03Your serverCalls our API with the ciphertext or a saved payment method.
  4. 04MerchSDKPicks the connection from the merchant's routing, or the connection_id you pass.
  5. 05Evervault RelayDecrypts the card or bank fields in transit to that gateway.
  6. 06MerchSDKFalls back on retryable declines, then returns every attempt and sends a webhook.
See every step with code
curl https://api.sandbox.merchsdk.com/v1/transactions/sale \
  -H "Authorization: Bearer msk_sandbox_4hQ…" \
  -H "Idempotency-Key: order-1042-attempt-1" \
  -H "Content-Type: application/json" \
  -d '{
    "merchant_id": "mer_7Rk2pQ",
    "customer_id": "cus_V3n8Lc",
    "payment_method_id": "pm_Q9fT2a",
    "amount": 12500,
    "currency": "USD",
    "order_id": "INV-1042"
  }'
{
  "id": "txn_9Hc4Qm2Lx",
  "status": "approved",
  "amount": 12500,
  "currency": "USD",
  "merchant_id": "mer_7Rk2pQ",
  "connection_id": "con_nM1x02",
  "payment_method": { "brand": "visa", "last4": "4242" },
  "attempts": [
    {
      "id": "att_1bW7eR",
      "connection_id": "con_aN3t01",
      "gateway": "authorize_net",
      "result": "error",
      "decline_code": "processor_unavailable",
      "gateway_message": "An error occurred during processing."
    },
    {
      "id": "att_2kP4sN",
      "connection_id": "con_nM1x02",
      "gateway": "nmi",
      "result": "approved",
      "gateway_transaction_id": "10482211937"
    }
  ]
}
Illustrative sandbox request. The API is in development and field names may change.
§ 04SecurityCiphertext only

Card numbers never touch your servers. Or ours.

  • Encrypted in the customer's browser

    Evervault encrypts card and bank fields inside our components, before anything reaches your page's code or your server.

  • Decrypted only on the way to the gateway

    Evervault Relay decrypts the fields in transit. We store ciphertext plus last 4 and brand for display.

  • Gateway credentials stay sealed

    Merchants' gateway keys are encrypted with AWS KMS and never returned to you. You get connection IDs and status.

  • Read the security model
§ 05What's in the APICards and ACH at launch

Everything a payments feature needs, behind the same API.

One-time charges, saved payment methods, schedules, and the pricing rules merchants ask for. Each works on any connection whose gateway supports it.

Cards and ACH

Sale, authorize, capture, void, refund, credit and $0 verify for cards. ACH debits store the customer's authorization and report settlement and returns by webhook.

Transaction endpoints
EndpointGoes
POST /v1/transactions/saleRelay → gateway
POST /v1/transactions/authorizeRelay → gateway
POST /v1/transactions/{id}/captureOriginal connection
POST /v1/transactions/{id}/refundOriginal connection

Routing and fallback

A default per payment type, a fallback order, or a connection_id per charge. Hard declines are never retried.

Recurring and payment plans

Subscriptions, installment plans with down payments, and one-time scheduled payments. We run each charge.

Dual pricing and surcharging

Surcharges on credit cards only, or card and cash prices, with quotes and the disclosure text to show.

Wallets, 3DS and network tokens

Apple Pay, Google Pay, 3D Secure, network tokens and card account updates for saved cards.

Signed webhooks

HMAC-signed with a timestamp, retried with backoff, and replayable from the event history.

See the full platform
§ 06QuestionsAsk us anything else

What ISVs ask us first.

Anything else, we're on the line 24/7/365.

Is MerchSDK a payment gateway or processor?
No. MerchSDK is software. Payments run on each merchant's own gateway and processor; we route them, and we never hold funds.
Do our merchants need new merchant accounts?
No. Merchants connect the gateway accounts they already have. There's no boarding and no underwriting through MerchSDK.
Which gateways can merchants connect?
Authorize.net, NMI, USAePay, Accept Blue, Dejavoo's online gateway, CardPointe, Stripe and Adyen at launch. Stripe and Adyen accounts need raw card data access turned on. We add gateways through a repeatable adapter kit, so ask about yours.
Does card data touch our servers?
No. Customers enter card and bank details in our iframes, Evervault encrypts them in the browser, and your server only handles ciphertext, tokens and transaction IDs.
Do you support in-person payments?
Not today. MerchSDK covers web checkout, saved payment methods, recurring billing and payment plans. Native mobile checkout is planned after launch.
How is MerchSDK priced?
By usage, billed monthly, with an emailed statement that breaks totals down by item and by merchant. See the pricing page for what's metered.
§ 07Early accessSandbox first

Build payments in once. Let your merchants bring their gateways.

We're onboarding software companies by invitation, sandbox first. Tell us what you build and which gateways your merchants use.