Getting started
How do we get credentials, and how do we check they work?
How do we get credentials, and how do we check they work?
GET /v1/payments/{paymentId} with any ID: only a 401 means it is invalid. See Authentication.Do we need to allow-list IP addresses, and is there a sandbox dashboard?
Do we need to allow-list IP addresses, and is there a sandbox dashboard?
What do we need to know about the sandbox?
What do we need to know about the sandbox?
store_sandbox as source.storeId, use only the listed test cards, and note that partial refunds can only be tested in production. See Testing.Is asynchronous processing optional?
Is asynchronous processing optional?
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
How should we set up stores and merchant identifiers?
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.What will appear on the customer's card statement?
What will appear on the customer's card statement?
source.storeId. The descriptor field is not currently passed to the statement. See Statement descriptor.Creating payments
Which fields and options do we need to send?
Which fields and options do we need to send?
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.What does the create response look like?
What does the create response look like?
200 with AUTHORIZED, CAPTURED or PENDING, a 402 with FAILED, or an error code. Some error codes still create a payment. See Possible outcomes.How should we fill in previous failures?
How should we fill in previous failures?
Timeouts, retries and duplicate payments
What happens if we send the same request twice?
What happens if we send the same request twice?
merchantReference isn’t enforced as unique. After a timeout, wait for the PAYMENT_CREATED webhook before resending. See Timeouts and retries.What are the rate limits and response times?
What are the rate limits and response times?
Recovery
Which payments can Paymend retry later?
Which payments can Paymend retry later?
source.initiatedBy: "MERCHANT". Consumer-initiated payments always get a final result in the create response and are never PENDING. See Merchant-initiated payments.How long can a payment stay PENDING?
How long can a payment stay PENDING?
Captures, refunds and voids
Can we capture or refund part of a payment?
Can we capture or refund part of a payment?
Can we always void a payment, and what if a retry is in progress?
Can we always void a payment, and what if a retry is in progress?
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.A refund returned PENDING. What should we do?
A refund returned PENDING. What should we do?
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
Which events do you send, and how do we process them?
Which events do you send, and how do we process them?
eventId, and verify the Bearer token. See Webhooks.Card data and security
What card data do you need, and do you support 3DS?
What card data do you need, and do you support 3DS?
Disputes and reporting
How will we hear about disputes?
How will we hear about disputes?
payments_disputed report in the Paymend dashboard, which lists every dispute event we receive: TC40, Ethoca, CDRN, RDR and chargebacks.