B2C-COMMERCE-ARCHITECT practice question 9 of 15

During implementation, the team found that there is a notification controller exposed for an external service that marks the order as paid when…

Full set: 64 questions
During implementation, the team found that there is a notification controller exposed for an external service that marks the order as paid when notification is received. The notification URL is sent to the service together with the payment request and contains only the URL with orderlD as the parameter. What should the Architect recommend to the team in order to prevent the unauthorized usage of the controller to mark the orders as paid?
Answer options
A: Add a customer number in the callback URL and match the customer number against the one stored on the order.
B: Add HTTPS restriction to the controller start node.
C: Add an order token in the callback URL and match the token against the one stored on the order. Correct answer
D: Add a session attribute and validate it on the callback.
Correct Answer:
C. Add an order token in the callback URL and match the token against the one stored on the order.
Explanation

To enhance the security of the notification controller exposed for marking orders as paid, the recommended approach is to add an order-specific token to the callback URL (Answer C). This token should be verified against a stored value on the order to ensure the authenticity and integrity of the payment notification. This method prevents unauthorized use of the controller, as only callbacks containing the correct, order-specific token would be allowed to mark orders as paid. This strategy is essential in maintaining secure and reliable transaction processes within Salesforce B2C Commerce.

Scroll to Top