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 API keys at https://www.affirm.com/dashboard/signin?
- 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.com 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.