Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: casey at SWIS 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 CreditAttribution: bojanz at Centarro commented#2934647: The order can stay unplaced after an offsite payment has landed, let's add those docs now.
Comment #4
bojanz CreditAttribution: bojanz at Centarro 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 CreditAttribution: bojanz at Centarro commentedHere's a patch.
And here's the entire OffsitePaymentGatewayInterface docblock for context:
Comment #6
bojanz CreditAttribution: bojanz at Centarro 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 CreditAttribution: bojanz at Centarro commentedI'll change "should not be touched" to "does not need to be touched", since it's not forbidden.
Comment #10
bojanz CreditAttribution: bojanz at Centarro commentedFixed #8 and committed. Thanks, everyone.