Add information about the order ID to the payment_create_prepare hook

Created on 21 June 2023, about 1 year ago

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.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ΎBelarus Spleshka UAE

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024