- Issue created by @sleewok
- Status changed to Closed: won't fix
over 1 year ago 2:56pm 21 June 2023
This is for a gateway plugin that I am developing.
My Process
When the paymentMethodAddForm is submitted I create a transaction with the status of 'HOLD'. The user is then presented with a "review" form. When the review form is submitted the transaction is updated with a status of 'CAPTURE'.
The Issue
I need to submit the hold transaction with the actual price. If I set a generic price value it will be declined if it is not within 30% of the original amount of the hold. I do not know how to retrieve the total amount.
Can someone please tell me how to retrieve the total amount within the function: createPaymentMethod(PaymentMethodInterface $payment_method, array $payment_details)
I would really appreciate some direction. I have been stuck for a while now.
Thanks!
Closed: won't fix
2.0
Payment