BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E704 Topic 10 Question 31 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 31
Topic #: 10
[All AD0-E704 Questions]

You have created a new gateway payment method. You configured the command pool in a di. xml file and added the MyCompany\MyModule\Gateway\Command\Sale command with the name sale to it. Your Sale command extends the Magento\Payment\Gateway\Command\GatewayCommand class.

You have also created a payment_action option in the system configuration and set the value to authorize_capture.

You found the sale command is never called when placing an order.

Which action will fix the problem?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Rosamond
5 months ago
That could be another potential solution to the problem.
upvoted 0 times
...
Josephine
5 months ago
Maybe the sale command should be registered in the etc config. xml as sales_model for a payment method.
upvoted 0 times
...
Yolando
5 months ago
I think the payment action needs to be changed to sale.
upvoted 0 times
...
Lashon
6 months ago
Alternatively, maybe the command name should be changed to capture.
upvoted 0 times
...
Rosamond
6 months ago
I agree with that, the issue might be with the class extension.
upvoted 0 times
...
Josephine
6 months ago
I think the SaleCommand Class needs to extend the \Magento\Payment\Gateway\Command\SaleCommand Class.
upvoted 0 times
...

Save Cancel