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 2 Question 78 Discussion

You are developing a new payment method. It is required that any new order created with this payment method needs to have a specific custom status. Assume the status has been added to the system already, assigned to the processing state, and the new order state for the payment method is processing. How do you set the custom status on orders placed with the new payment method?
C) Create an observer for the event sales_order_set_status, get the $status parameter and set the new status using $status->setStatus()
A) Add a custom status code to the Magento\Sales\Model\Order-\Payment class as a $newOrderStatus constructor parameter using di.xml
B) Create a system configuration option order.status and set the status code as its value
D) Create a command setOrderStatus and add it to a commandPool with a name set_status

Adobe AD0-E704 Exam - Topic 2 Question 78 Discussion

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

You are developing a new payment method. It is required that any new order created with this payment method needs to have a specific custom status. Assume the status has been added to the system already, assigned to the processing state, and the new order state for the payment method is processing. How do you set the custom status on orders placed with the new payment method?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel