Use Ds_Amount in commerce_sermepa_process_transaction

Created on 23 February 2018, almost 7 years ago
Updated 22 October 2024, 2 months ago

The module use the amount of commerce_order_total to process the payment in commerce_sermepa_process_transaction.

But if you have used the hook_commerce_sermepa_gateway to alter the amount, later, when it is processed the payment amount it's not the right one.

And sermepa returns the right amount payed in the variable Ds_Amount.

In line 531 of commerce_sermepa.module:
$transaction->amount = $order->commerce_order_total[LANGUAGE_NONE][0]['amount'];

I propose instead:
$transaction->amount = $feedback_parameters['Ds_Amount'];

Feature request
Status

Needs review

Version

1.4

Component

Code

Created by

🇪🇸Spain Carlitus

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024