# Payments

Charge a stored card, then capture, void, or refund.

 - [POST /payments/hosted-page](https://docs.dimepay.net/apis/v2/dime-v2/payments/createhostedpage.md): Creates an order and returns what you need to send the buyer to pay. It takes the same body as `POST /orders` and applies the same validation; only the response is shorter: `token`, `currency`, `check
 - [POST /payments/sale](https://docs.dimepay.net/apis/v2/dime-v2/payments/salepayment.md): Charges the card in one step: authorizes and captures. A successful charge returns `200` with `status: COMPLETE`. A declined card returns `402` with `type: card_error` and `code: card_declined`; the `
 - [POST /payments/auth](https://docs.dimepay.net/apis/v2/dime-v2/payments/authorizepayment.md): Holds the funds without taking them. A successful hold returns `200` with `status: AUTHORISED`. Capture it with `PUT /payments/capture` or release it with `PUT /payments/void`. Declines and processor
 - [PUT /payments/capture](https://docs.dimepay.net/apis/v2/dime-v2/payments/capturepayment.md): Captures an authorization in full. Only a transaction with `status: AUTHORISED` can be captured, and only once; it then has `status: COMPLETE`. Partial capture is not supported. Any other status retur
 - [PUT /payments/void](https://docs.dimepay.net/apis/v2/dime-v2/payments/voidpayment.md): Releases an authorization so no money moves. Only a transaction with `status: AUTHORISED` can be voided, and the whole hold is released. A sale or a captured authorization cannot be voided; refund it
 - [PUT /payments/refund](https://docs.dimepay.net/apis/v2/dime-v2/payments/refundpayment.md): Refunds a completed transaction. Send `amount` for a partial refund, or omit it to refund everything not yet refunded: the whole payment, or what is left after earlier partial refunds. You can make se
