Skip to main content

Getting started

Ask your Paymend sales representative for API tokens; sandbox and production tokens are separate. To check a token, call GET /v1/payments/{paymentId} with any ID: only a 401 means it is invalid. See Authentication.
No allow-listing is needed for the API or the dashboard. There is no sandbox dashboard; production access is shared before go-live. See API environments.
Use store_sandbox as source.storeId, use only the listed test cards, and note that partial refunds can only be tested in production. See Testing.
No. Every integration must handle PENDING payments, and we strongly recommend webhooks for tracking them rather than polling. See Asynchronous payment updates and the integration checklist.

Merchant and store setup

source.storeId is per website: Paymend creates one for each website during onboarding. source.externalMerchantId is optional and can be left null if you use a separate token per merchant. See Source.
On Paymend MIDs, the domain of the store in source.storeId. The descriptor field is not currently passed to the statement. See Statement descriptor.

Creating payments

The required and recommended fields, including the required source.initiatedBy, are in Create payments. All payments are in USD, and no transaction codes, Level 2/Level 3 data or account flags are needed.
A 200 with AUTHORIZED, CAPTURED or PENDING, a 402 with FAILED, or an error code. Some error codes still create a payment. See Possible outcomes.
Send each decline code exactly as your processor returned it, and a provider name from Paymend’s normalised list. See Previous failure details.

Timeouts, retries and duplicate payments

You get two payments: there is no idempotency key, and merchantReference isn’t enforced as unique. After a timeout, wait for the PAYMENT_CREATED webhook before resending. See Timeouts and retries.
1,500 requests per minute per source IP, with a 30-second server timeout and a median response of about 0.5 seconds. See Rate limits and response times.

Recovery

Only merchant-initiated payments, sent with source.initiatedBy: "MERCHANT". Consumer-initiated payments always get a final result in the create response and are never PENDING. See Merchant-initiated payments.
Attempts usually happen over a few hours to a few days, and every payment reaches a final status within 30 days. To stop recovery earlier, void the payment. See Pending payments.

Captures, refunds and voids

Captures are full-amount only. Partial refunds are supported from 72 hours after the payment was created. See Captures and Refunds.
You can void AUTHORIZED and PENDING payments. If a retry is in progress, the void fails, and the next webhook tells you whether to void again or refund. See Voids.
Don’t send it again: the provider hasn’t confirmed the refund yet, and the payment stays CAPTURED meanwhile. We check automatically. If it succeeds, usually within an hour, you receive a PAYMENT_REFUNDED webhook. A failure takes at least 24 hours to confirm and sends no webhook, so a payment still CAPTURED means the refund isn’t confirmed yet. A second refund sent while the first is pending returns 409 with REFUND_IN_PROGRESS; a new refund is accepted once the pending one is resolved. If refunds are still blocked after 24 hours, contact support. See If the refund outcome is not yet known.

Webhooks

A webhook for every payment status change, and at least two for every new payment. Respond with a 2xx within 500 ms, drop duplicates by eventId, and verify the Bearer token. See Webhooks.

Card data and security

The full card number on every request, including rebills, in plain text or encrypted with Evervault. AVS and CVV results aren’t returned, and externally authenticated 3DS data isn’t accepted. See Card data.

Disputes and reporting

Disputes are not available through webhooks or the API. Use the payments_disputed report in the Paymend dashboard, which lists every dispute event we receive: TC40, Ethoca, CDRN, RDR and chargebacks.