--- title: "Cancel or refund a transaction" url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/key-steps-c-library/cancel-or-refund-a-transaction-c-library" source_url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/key-steps-c-library/cancel-or-refund-a-transaction-c-library.md" canonical: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/key-steps-c-library/cancel-or-refund-a-transaction-c-library" last_modified: "2026-05-23T12:56:20+02:00" language: "en" --- # Cancel or refund a transaction [View source](/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/key-steps-c-library/cancel-or-refund-a-transaction-c-library.md) There are a number of ways to cancel or refund a transaction, depending on its state: * [Refund a balance to a card](/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/extras-c-library/start-gift-card-transactions-c-library/refund-a-balance-to-a-gift-card-c-library) - Use this to perform a refund on the terminal. This is an unreferenced refund.  * [Cancel an ongoing transaction](/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/key-steps-c-library/cancel-or-refund-a-transaction-c-library/cancel-a-transaction-c) - Use this to cancel a transaction that is currently being processed on your payment terminal. * [Cancel or Refund a completed transaction from the terminal transaction list](/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/key-steps-c-library/cancel-or-refund-a-transaction-c-library/refund-a-transaction-from-the-ped-c) - Use this to cancel or refund a transaction from the terminal transaction list, and receive a receipt on the POS or on the PED. * [Cancel or Refund a transaction directly from a POS to the Adyen Payments Platform](/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/key-steps-c-library/cancel-or-refund-a-transaction-c-library/refund-a-transaction-from-the-pos-c) - Use this to cancel a transaction that has already processed from your POS to the Adyen payments platform. * [Partially refund a balance](/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/key-steps-c-library/cancel-or-refund-a-transaction-c-library/partially-refund-a-balance-c-library) - Use this to refund a partial amount to a card. This is a referenced partial refund.