Merchant-initiated payments
Paymend only retries a payment later, or returnsPENDING for it, when the payment is merchant-initiated: send source.initiatedBy: "MERCHANT" for rebills, subscription renewals and any other charge made without the cardholder present.
A payment sent with source.initiatedBy: "CONSUMER" always gets a final result (AUTHORIZED, CAPTURED or FAILED) in the create response, because the cardholder is waiting for it. Paymend doesn’t schedule retries for these payments, and a timeout returns FAILED instead of PENDING.
Pending payments
When Paymend requires additional time to process a merchant-initiated payment, we respond to the payment creation request with aPENDING status.
A PENDING status means:
- The payment has been successfully created
- No final authorization decision has been made yet
- Paymend is actively managing recovery attempts: an attempt is either in flight or scheduled
PENDING doesn’t necessarily mean an attempt has already failed. Attempt timing depends on the payment, including any decline reasons, and usually ranges from a few hours to a few days.
PENDING is always a temporary state. Without any further action from the merchant, the payment will eventually transition to one of the following final statuses:
AUTHORIZEDCAPTUREDFAILED
FAILED and no further attempts are made. Either way, we send the matching webhook.
The 30-day window is fixed, and there is no per-payment deadline field. To stop recovery earlier, void the payment while it is PENDING.
You can see the lifecycle for payments with Paymend here.
Best practices for PENDING payments
While a payment is in PENDING state with Paymend, merchants may continue to attempt recovery outside of Paymend.
To avoid conflicts or double charges, please follow these rules:
- Do not retry the same payment via Paymend while it remains in
PENDINGstate. - If circumstances change such that no further authorization attempts should be made for a
PENDINGpayment (for example, the order is canceled or the consumer is successfully charged elsewhere), the payment with Paymend must be voided to prevent a double charge.
If a retry attempt is in progress when you send the void, the void fails, and Paymend may already have recovered the payment. See Voids for what to do next, including when to refund.

Webhooks
Webhooks are the recommended way to learn the outcome of aPENDING payment (for example, when it moves from PENDING to AUTHORIZED). Polling the query endpoint is possible but not recommended: a payment can stay PENDING for up to 30 days, and the delay before you see a status change risks double charges.
You can find more details on Paymend webhooks here.

Previous failure details
The more information you can provide about previous attempts to process a payment, the more effectively Paymend can recover it. Paymend supports a PreviousFailure object that allows you to pass details about earlier attempts and their failure reasons. This information helps route the payment onto the most effective recovery path more quickly. For each earlier attempt:- Put the decline code in
providerFailureCodeexactly as your processor returned it (for example NMI201,202,253). Don’t map it to your own codes. - Set
providerto one of Paymend’s normalised provider names. Ask your Account Manager for the list.
goodsType: "DIGITAL" as well as source.initiatedBy: "MERCHANT" (see Merchant-initiated payments).
Integration checklist
Every Paymend integration must:- Send
source.initiatedByon every payment:MERCHANTfor rebills, subscription renewals and any other charge without the cardholder present,CONSUMERotherwise. OnlyMERCHANTpayments are retried later (see Merchant-initiated payments) - Handle
PENDINGas a non-terminal state, and not retry the payment while it isPENDING - Void
PENDINGpayments if no further authorization attempts should be made - Handle create timeouts without creating duplicate payments (see Timeouts and retries)
- Receive and acknowledge webhooks, dropping duplicates by
eventId, rather than polling for status changes - Provide PreviousFailure data where available