QuestionQ168

VerifiedSalesforce Integration Patterns

A leading training provider delivers courses to students worldwide. The company chose Customer Community so students can sign in to the community, enroll in courses, and pay course fees. Its payment gateway 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 integration approach is recommended to process payments for this requirement?

Explanation

Apex Continuations support long-running asynchronous callouts to an external web service and process the response through a callback, so the payment result can be returned to the user experience without holding a synchronous request open. Salesforce recommends Continuations to manage long-running callouts because they improve the user experience.

Learn more

Community Discussion

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