Some ERP systems needs the order_number and not order_id attached

Created on 8 September 2023, about 1 year ago
Updated 12 September 2023, about 1 year ago

Some ERP systems needs the reference to the payment gateway to be the actual order_number and not the order_id.

So have made a little patch, that takes the `$order->getOrderNumber()` and set as reference to the easy order object, and if it's not set, it's using the `$order->id()`

It will be suitable, if you have some kind of CommerceNumberPattern which is injected and set on the order object before going to the payment page.

In my implementation, I have made a custom CommerceCheckoutPane which is attached right before the Payment process checkoutpane, and that pane is fetching the order_number from the ERP and attachs it to the order object.

Under normal curcumstances, the order_number will not be set here, and not used.

💬 Support request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇩🇰Denmark ramlev

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

Comments & Activities

Production build 0.71.5 2024