cancel
Showing results for 
Search instead for 
Did you mean: 

Question about handling asynchronous callbacks in CyberSource API integration

 

I’m integrating the CyberSource REST API for payment processing in our Node.js backend. I have a question around managing asynchronous callbacks and error handling:

  • When using their payment-authorization endpoint, if the response returns with a 402 or another non-200 status, what’s the best practice to retry the request — immediately, or after some delay (and how long)?

  • Also, in case the callback URL is unreachable (network timeout or DNS error), does CyberSource automatically retry, or do we need to implement our own retry logic?

Thanks in advance for any insights or examples from real-world integrations.

Iuvtech
Member
1 REPLY 1

For handling asynchronous callbacks with CyberSource REST API, if a payment-authorization response returns a 402 or other non-200 status, implement a retry with exponential backoff rather than immediate retries to avoid overwhelming the API. Typical delays start around a few seconds and double each retry, with a maximum number of attempts. If the callback URL is unreachable, CyberSource does not automatically retry, so your backend should handle retries, logging, and alerts for failed callbacks.

 

 

Elio
Contributor