Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How can I handle the situation if the payment gateway is temporarily unavailable by using the try-catch block in Salesforce?

Asked by Aaditya Srivastva Feb 20, 2024 810 views 1 answer
Share

About this question

 I am currently developing a Salesforce-based application that can integrate with an external payment gateway. My particular code sends a request to the gateway related to payment for processing a payment. However, sometimes the payment gateway can be temporarily unavailable due to the process of maintenance. How can I utilize the try-catch block in my apex code for handling this particular situation? 

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.