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 Exam AD0-E704 Topic 8 Question 57 Discussion

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

Contribute your Thoughts:

Malika
2 days ago
I disagree, I believe the answer is C) Create an observer for the event sales_order_set_status, get the $status parameter and set the new status using $status->setStatus()
upvoted 0 times
...
Nicolette
7 days ago
I think the correct answer is A) Add a custom status code to the Magento\\Sales\\Model\\Order\\Payment class as a $newOrderStatus constructor parameter using di.xml
upvoted 0 times
...

Save Cancel