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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3138161-3.patch | 985 bytes | valic |
| #2 | 3138161-2.patch | 1.1 KB | valic |
Comments
Comment #2
valicPatch attached
Comment #3
valicI see authorized is used on multiple places, let it leave as authorized then.
Added new patch
Comment #4
valicAh, I am seeing my misconception of the module :-D
Sorry, closing this one.
completed - is marking the authorized transaction
paid - it is received funds