> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paymend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Integration FAQ

> Short answers to common integration questions, with links to the details

## Getting started

> [accordion] How do we get credentials, and how do we check they work?
>
> 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](https://docs.paymend.com/welcome-to-the-paymend-api.md#authentication).

> [accordion] Do we need to allow-list IP addresses, and is there a sandbox dashboard?
>
> 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](https://docs.paymend.com/welcome-to-the-paymend-api.md#api-environments).

> [accordion] What do we need to know about the sandbox?
>
> 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](https://docs.paymend.com/testing.md).

> [accordion] Is asynchronous processing optional?
>
> No. Every integration must handle `PENDING` payments, and we strongly recommend webhooks for tracking them rather than polling. See [Asynchronous payment updates](https://docs.paymend.com/welcome-to-the-paymend-api.md#asynchronous-payment-updates) and the [integration checklist](https://docs.paymend.com/recover-payments.md#integration-checklist).

## Merchant and store setup

> [accordion] How should we set up stores and merchant identifiers?
>
> `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](https://docs.paymend.com/api-reference/objects/source.md).

> [accordion] What will appear on the customer's card statement?
>
> On Paymend MIDs, the domain of the store in `source.storeId`. The `descriptor` field is not currently passed to the statement. See [Statement descriptor](https://docs.paymend.com/create-payments.md#statement-descriptor).

## Creating payments

> [accordion] Which fields and options do we need to send?
>
> The required and recommended fields, including the required `source.initiatedBy`, are in [Create payments](https://docs.paymend.com/create-payments.md#mandatory-fields). All payments are in USD, and no transaction codes, Level 2/Level 3 data or account flags are needed.

> [accordion] What does the create response look like?
>
> 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](https://docs.paymend.com/create-payments.md#possible-outcomes).

> [accordion] How should we fill in previous failures?
>
> Send each decline code exactly as your processor returned it, and a provider name from Paymend's normalised list. See [Previous failure details](https://docs.paymend.com/recover-payments.md#previous-failure-details).

## Timeouts, retries and duplicate payments

> [accordion] What happens if we send the same request twice?
>
> 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](https://docs.paymend.com/create-payments.md#timeouts-and-retries).

> [accordion] What are the rate limits and response times?
>
> 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](https://docs.paymend.com/create-payments.md#rate-limits-and-response-times).

## Recovery

> [accordion] Which payments can Paymend retry later?
>
> 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](https://docs.paymend.com/recover-payments.md#merchant-initiated-payments).

> [accordion] How long can a payment stay PENDING?
>
> 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](https://docs.paymend.com/recover-payments.md#pending-payments).

## Captures, refunds and voids

> [accordion] Can we capture or refund part of a payment?
>
> Captures are full-amount only. Partial refunds are supported from 72 hours after the payment was created. See [Captures](https://docs.paymend.com/manage-payments.md#captures) and [Refunds](https://docs.paymend.com/manage-payments.md#refunds).

> [accordion] Can we always void a payment, and what if a retry is in progress?
>
> 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](https://docs.paymend.com/manage-payments.md#voids).

> [accordion] A refund returned PENDING. What should we do?
>
> 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](https://docs.paymend.com/manage-payments.md#if-the-refund-outcome-is-not-yet-known).

## Webhooks

> [accordion] Which events do you send, and how do we process them?
>
> 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](https://docs.paymend.com/webhooks.md).

## Card data and security

> [accordion] What card data do you need, and do you support 3DS?
>
> 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](https://docs.paymend.com/create-payments.md#card-data).

## Disputes and reporting

> [accordion] How will we hear about disputes?
>
> Disputes are not available through webhooks or the API. Use the [`payments_disputed`](https://docs.paymend.com/reporting/payments_disputed) report in the Paymend dashboard, which lists every dispute event we receive: TC40, Ethoca, CDRN, RDR and chargebacks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.