Problem/Motivation
Payment create endpoint provides alter hook "payment_create_prepare", but it does not pass information about the order, so there is no way to perform any order-related operations in the alter hook.
We've got a use case where we need to check order total price in order to alter the payment, and therefore order info is essential.
Proposed resolution
Add order_id to the $data array which is being passed to the alter hook.
Issue fork commerce_decoupled_checkout-3368130
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
spleshkaMerging the proposed change.