Adyen Checkout Modifications API.
Capture, cancel, refund, reverse, and update authorised payments.
All modification endpoints require the paymentPspReference from the
original authorisation response.
Summary
Functions
Cancel an authorised payment (by PSP reference path).
Cancel an authorised payment using your own merchant reference (global endpoint). Use when you don't have the PSP reference yet.
Capture an authorised payment.
Refund a captured payment.
Reverse a payment — refund if captured, cancel if not yet captured.
Update the authorised amount of a payment.
Functions
@spec cancel(String.t(), map(), keyword()) :: AdyenClient.Client.response()
Cancel an authorised payment (by PSP reference path).
Parameters
psp_reference— the PSP reference of the authorisationparams—%{merchantAccount: "..."}plus optionalreference
@spec cancel_by_reference( map(), keyword() ) :: AdyenClient.Client.response()
Cancel an authorised payment using your own merchant reference (global endpoint). Use when you don't have the PSP reference yet.
Parameters
params— must includemerchantAccountandreference(your original order reference)
@spec capture(String.t(), map(), keyword()) :: AdyenClient.Client.response()
Capture an authorised payment.
Parameters
psp_reference— the PSP reference of the authorisationparams— at minimum%{merchantAccount: "...", amount: %{currency: "USD", value: 1000}}
@spec refund(String.t(), map(), keyword()) :: AdyenClient.Client.response()
Refund a captured payment.
Parameters
psp_reference— PSP reference of the captured paymentparams—%{merchantAccount: "...", amount: %{currency: "USD", value: 500}}
@spec reverse(String.t(), map(), keyword()) :: AdyenClient.Client.response()
Reverse a payment — refund if captured, cancel if not yet captured.
Parameters
psp_reference— PSP reference of the paymentparams—%{merchantAccount: "..."}
@spec update_amount(String.t(), map(), keyword()) :: AdyenClient.Client.response()
Update the authorised amount of a payment.
Useful for tip adjustments or incremental authorisations.
Parameters
psp_reference— PSP reference of the authorisationparams—%{merchantAccount: "...", amount: %{currency: "USD", value: 1100}, industryUsage: "DelayedCharge"}