Skip to content

[EPC-9193] Set base_amount_authorized after processing authorisation webhook#2945

Merged
candemiralp merged 2 commits intomainfrom
ECP-9193
Apr 30, 2025
Merged

[EPC-9193] Set base_amount_authorized after processing authorisation webhook#2945
candemiralp merged 2 commits intomainfrom
ECP-9193

Conversation

@candemiralp
Copy link
Contributor

Description

Magento has two fields on sales_order_payment table to indicate the total authorized amount of the order. From which, the one reserved for base authorized amount is not filled correctly by the plugin. This PR updates how the plugin sets amount_authorized and base_amount_authorized fields of sales_order_payment table.

This fields are populated after the full amount is authorized considering the partial payments as well.

Tested scenarios

Authorize the payments with the following test cases

  • charged_currency is display, order is placed with the base currency
  • charged_currency is display, order is placed with an alternative currency
  • charged_currency is base, order is placed with an alternative currency

@sonarqubecloud
Copy link

@candemiralp candemiralp merged commit f9087b3 into main Apr 30, 2025
14 of 15 checks passed
@candemiralp candemiralp deleted the ECP-9193 branch April 30, 2025 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix Indicates a bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants