In this guide, you’ll learn about the process of building a Direct API Integration. There’s an overview explaining what our API is and how it works, as well as definitions of different concepts and links to additional technical information.
By following each of the steps below, you will be able to automate your business services and improve your customers' experience!
API stands for Application Programming Interface. It allows two software applications to interact with each other. When you create an API integration, the API shares data with a server, platform or application, enabling you to implement services such as Affirm Checkout or features like our Promotional Messaging.
Broadly speaking, an API is then an interaction between two parts: a client and a server. The client sends requests while the server returns responses based on that data. Keep in mind that the Affirm API interaction consists in creating a checkout form, tokenizing customer information securely, and using that checkout_token to initiate a transaction.
Direct API Integrations could require more time to develop because of their more complex and technical requirements. When a consumer chooses Affirm upon checkout, the basic transaction flow begins.
The steps that follow will show what the customer sees on the front end and how the checkout is handled by Affirm's integration on the back end.
You can watch the video or check the steps below for building an API integration.
Check the links in the Implementation Process section for more details on this entire process.
This is the complete checkout flow. It is divided into four phases as described below.
1. Customer initiates a checkout
The Affirm checkout process begins when the customer selects Affirm as their payment method and submits a checkout.
2. Create, configure, and send the Checkout object
Then, on the merchant’s side, a process starts as shown below.
3. Collect customer information
4. Authorize the transaction and complete the order
Direct API Integrations require some coding. There are a few things you must do before you can deploy it to your production account and go live:
We'll cover each of these steps in separate articles.