Managing Charges
Learn about managing charges in your payment gateway. Explore charge authorization and charge actions for the legacy Charges API.
Switching to the Transactions API
Affirm has moved to the Transactions API. While we continue to support the Charges API, we recommend using the Transactions API instead. Transactions APIs support Leases serviced by LTO providers (Snap, Katapult, etc.) in addition to processing payments financed by installment loans. Learn more.
Overview
Charges represent the Affirm loans that are issued to the end-user. You can interact with charges using the Charges API in order to change the state of that charge, update metadata, or retrieve details.
Charge Authorization
Charge authorization occurs after a user has successfully completed the Affirm checkout flow and returns back to the merchant site. Authorizing the charge generates the charge_id
that will be used to reference this loan moving forward.
Charge Actions
You can integrate various charge actions into your back-end order management system, where you normally fulfill orders and process payments, refunds, and cancelations.
You can use the Charges API to manage charges with the following actions:
- Read charge.
- Capture charges.
- Void charges.
- Refund charges.
- Update charges.
- And more.
These actions enable you to manage charges through various states such as authorized, captured, voided, etc.
Updated 9 days ago