maksuturva / magento2_payment_module

Svea Payment module for Magento 2
Other
4 stars 13 forks source link

MAKSU-49: Add maksuturva_pmt_id field to sales_order_payment #9

Closed miikavai closed 4 years ago

miikavai commented 4 years ago

Fixes issue with Svea/Maksuturva module success return handling. Previously utilised session data to fetch order. This does not work with server-to-server calls (“status OK callback”).

This change adds new (indexed) field to sales_order_payment called maksuturva_pmt_id. When return call is made to success end point (either by user return or server-to-server call), new logic utilises pmt_id parameter from the response and fetches payment and further more order based on that id.

miikavai commented 4 years ago

Success.php, line 50. Path should be \Svea\Maksuturva\Model... Piimega has been renamed to Svea in version 1.0.2.

Thank you. Opened this PR a bit too early. Now added description and fixed incorrect path.