How have we arrived at these tips?
We have done more than 50 fintech-lender integrations. Following these tips would help you avoid several of the common issues faced by earlier integration efforts.
Things to ensure
-
Add auto retries to make integration robust. In each of the APIs where objects are getting created, we have checks that duplicate objects do not get created. In case a duplicate request is sent, appropriate error is sent, so handle those.
-
Handle error scenarios as well as success scenarios.
-
Add a cron for posting unposted payments, so that you do not have to do manual retries.
Things to avoid
-
Do not do API calls concurrently, do them sequentially to avoid overwhelming the servers and face unexpected issues. This would help avoid lots of issues in future.
-
Do not regenerate payment transaction ids in every request, it must be an id which is present in your database.