In Slack:
> basically, we always rely on the admin to do the manual update
> your order is in validation, you have a payment, you mark it as complete
We should document on these methods that it is not their responsibility to do anything to the order such as cancel it or set it to complete.
Store admins should manually update the order when they see the payment has come in.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 2930789-5.patch | 2.4 KB | bojanz |
Comments
Comment #2
casey commentedNote that if this is the case (that payment gateways should not update the order status), that #2934647: The order can stay unplaced after an offsite payment.
Comment #3
bojanz commented#2934647: The order can stay unplaced after an offsite payment has landed, let's add those docs now.
Comment #4
bojanz commentedNow that #3009962: Invalid step ID "" passed to redirectToStep() in PaymentCheckoutController->returnPage is in, we also need to document that onReturn() will be skipped if onNotify() resulted in a placed order.
Comment #5
bojanz commentedHere's a patch.
And here's the entire OffsitePaymentGatewayInterface docblock for context:
Comment #6
bojanz commentedNow with 100% more patch!
Comment #7
zaporylieThe parent order should not be touched whatsoever or it should not be placed/transition should not be fired?
I'm wondering if it is strictly forbidden for payments to modify the order, even if only to set some metadata on the order itself.
Comment #8
bojanz commentedI'll change "should not be touched" to "does not need to be touched", since it's not forbidden.
Comment #10
bojanz commentedFixed #8 and committed. Thanks, everyone.