Contents
Implementation process
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 the items that are bolded in this article. We'll cover the other steps in the other guide steps.
Direct API Integration: Deployment steps
After you are done configuring the Direct API implementation steps that you saw in the previous steps, you are now ready to deploy it to your production environment. When deploying the integration to your production environment, please make sure to follow the steps below:
- Retrieve your Public and Private APIKeys at https://www.affirm.ca
- Update the script parameter in the Affirm.js embed code to point to our live environment at https://cdn1.affirm.com
- Replace the public_api_key parameter in the Affirm.js embed code with the Public API Key you just retrieved.
- Update all your API calls to use the base URL, https://api.affirm.com, and to use the Public and Private API Keys you just retrieved.
Request approval by emailing implementation@affirm.ca once the Promotional Messaging and the payment method have been pushed live on your production site. The integration team will place a test transaction on the live site, have you capture and then refund the transaction to ensure everything is working properly.
Once we’ve processed a successful test order, we’ll go ahead and mark you as Live within our system. At that point, you'll be receiving a series of emails from our Client Success Team to help you get started and share some tips.