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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2930502-2.commerce.add-a-helper-method-PaymentisComplete.patch | 1.17 KB | joachim |
|
Comments
Comment #2
joachim CreditAttribution: joachim at Torchbox commentedCalling this isCompleted() rather than isComplete(), to match the name of the state and also the getCompletedTime / setCompletedTime methods.
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedThis is comparing a StateItem field object with a string. Proof that we need a kernel test :)
The state check will also return FALSE for refunded payments, which are also technically complete, so I think we need to check the timestamp instead.
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedAddressed #3, added a test.