Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E704 Exam - Topic 12 Question 13 Discussion

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?
C) The sale command has to be registered in the etc config. xml as sales_model for a payment method
A) The SaleCommand Class has to extend the \Magento\Payment\Gateway\Command\SaleCommand Class
B) The command name has to be changed to capture
D) The payment action has to be changed to sale

Adobe AD0-E704 Exam - Topic 12 Question 13 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 13
Topic #: 12
[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:

0/2000 characters
Linn
9 months ago
Isn't it strange that the sale command isn't called at all?
upvoted 0 times
...
Nobuko
9 months ago
Wait, why would the payment action need to be changed to sale?
upvoted 0 times
...
Rima
9 months ago
Definitely need to register the sale command in etc config.xml.
upvoted 0 times
...
Soledad
9 months ago
I think changing the command name to capture is a bad idea.
upvoted 0 times
...
Denise
10 months ago
The SaleCommand Class should extend \Magento\Payment\Gateway\Command\SaleCommand.
upvoted 0 times
...
Torie
10 months ago
I thought extending the SaleCommand class was necessary, but I'm not completely sure if that's the only issue at play here.
upvoted 0 times
...
Heidy
10 months ago
I feel like changing the payment action to 'sale' could be a solution, but I can't recall if that would actually trigger the command properly.
upvoted 0 times
...
Josphine
10 months ago
I think I saw a similar question where the command had to be registered in the config.xml file. That might be the key here.
upvoted 0 times
...
Edna
10 months ago
I remember that the command name needs to match what Magento expects, but I'm not sure if it should be 'capture' or if it can stay as 'sale'.
upvoted 0 times
...
Galen
10 months ago
This seems like a straightforward question about account groups in Infor M3. I'll read through the options carefully and try to recall what I know about how account groups are structured.
upvoted 0 times
...
Mi
10 months ago
Ghost employee, got it. This is a classic type of fraud that companies need to watch out for. I feel confident I can identify this kind of issue on the exam.
upvoted 0 times
...
Cordelia
10 months ago
I think option A makes the most sense since exporting outputs and importing them is typically the most straightforward way to share resources between templates.
upvoted 0 times
...

Save Cancel