Add transaction model to ProcessPaymentEvent #2450
Unanswered
lukeholder
asked this question in
Ideas
Replies: 1 comment
-
Has this feature made its way into Commerce yet? We could do with this for a project we are working on where some users payments will be just captured whist others will be authorised as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Adding the transaction model to the event will allow a developer to dynamically override the transaction’s
paymentType
and set it to eitherpurchase
orauthorize
. (The default will be set to the gateway’s payment type in config)https://github.com/craftcms/commerce/blob/develop/src/services/Payments.php#L243
Beta Was this translation helpful? Give feedback.
All reactions