Problem/Motivation

During payment processing, there is a method that sets payment authorized based on a count of payments vs. the maximum limit of open purchase orders.

The open purchase order should be considered where payment is authorized, but not completed or canceled.

Currently, that check uses state completed which leads to issue if the user has one completed payment and limit is set to 1, he can't finish the next order.

Proposed resolution

Use authorized state inside function: \Drupal\commerce_purchase_order\Plugin\Commerce\PaymentGateway\PurchaseOrderGateway::authorizePayment

Use authorization as a state instead of authorized

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#3 3138161-3.patch985 bytesvalic
#2 3138161-2.patch1.1 KBvalic

Comments

valic created an issue. See original summary.

valic’s picture

StatusFileSize
new1.1 KB

Patch attached

valic’s picture

StatusFileSize
new985 bytes

I see authorized is used on multiple places, let it leave as authorized then.

Added new patch

valic’s picture

Status: Active » Closed (works as designed)

Ah, I am seeing my misconception of the module :-D

Sorry, closing this one.

completed - is marking the authorized transaction
paid - it is received funds