QuestionQ39

VerifiedSalesforce Integration Patterns

A company that is a leading provider of training offers courses to students worldwide. The company chose to use Customer Community so students can sign in to the community, enroll in courses, and pay course fees. The company uses a payment gateway that requires more than 30 seconds to process a payment transaction. Students want to receive the payment result in real time so that, if an error occurs, they can retry the payment process.

What is the recommended integration approach for processing payments based on this requirement?

Explanation

Apex Continuation supports long-running requests to external web services and handles the response in a callback, allowing the payment result to be returned to the user after the gateway completes processing. Salesforce recommends continuations to manage long-running callouts because they improve the user experience and avoid tying up the normal synchronous request flow.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!