Closed thompalstra closed 3 years ago
Hi @thompalstra ,
The way Amasty has build their Coupon Total is different from what our module expects. We expect the unit_price to have a single price value and instead the Amasty Coupon module is giving us an array with a coupon code in it as well, so that is where it fails.
You could try to create an observer based on the 'before_send_msp_transaction_request' event. We fire this event right before the moment we send the transaction to MultiSafepay. See: https://github.com/MultiSafepay/Magento2Msp/blob/master/Model/Connect.php#L662-L664
In the event observer you can then access the transaction data and change the unit_price before it is being sent.
We also have an example of this concept available which i can send you via e-mail. If you need more help, please let us know.
When selecting Klarna as payment method and using a coupon code, the sent items seem to be formatted incorrectly.
This results in a code 1031, incorrect price for specific item.
Klarna:
Other payment method (iDeal)
How would we approach resolving this issue?