Capture, Refund, Void

Reference pages: Capture Sale, Refund Sale, Void Authorization, the capture guide, Idempotency and Retries.

Send seller_payme_id on all three. A partner also sends payme_client_key, and that seller must belong to it: otherwise refund-sale fails with error 303.

Authorize now, capture later

generate-sale with sale_type: "authorize", the buyer pays, the sale is authorized, then capture-sale moves it to completed.

Rule What happens otherwise
Capture within 7 days of the authorization Error 516
Capture once A second capture fails with error 305 in the sandbox, with completed as the additional information
Capture only after the buyer paid A sale still initial fails with error 305 in the sandbox

Partial capture

PayMe accepts sale_price on capture-sale, within the account's capture limit. What happens to the rest of the hold is unconfirmed, and the query check fails by design because no row matches the full order amount. Don't offer partial capture until PayMe answers (see What to Ask PayMe First).

Refund

Void

There's no separate call: refund-sale with no amount on an uncaptured authorization releases the hold, and the status becomes voided. This worked for a partner and for a direct seller in the sandbox.

Reading the rows

Each get-transactions row has a transaction_action, and PayMe's values are:

transaction_action What the row is
Debit A charge. Seen in the sandbox
Authorize, Capture A hold, and taking it
Refund, Partial Refund Money back to the buyer. Seen in the sandbox
Void, Partial Void A hold released, not refunded money. Void seen in the sandbox
Chargeback, Partial Chargeback The card company took the money back
Chargeback Refund, Partial Chargeback Refund A chargeback reversed. Not a refund to the buyer
Tokenize, Detokenize Token work, with no money moved

To add up refunds: