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.
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.