Further to #1878674: Incorrect usage of order_number - this issue still appears to be present in the unified SagePay project, but it's more endemic than just the 3D secure module - there's several examples of redirecting to checkout/$order->order_number, and at least one example where a commerce_sagepay generates a URL based on order_number pointing to a (commerce_sagepay) callback that treats it as an order_id.
As noted in the above issue this is not just harmlessly inconsistent, it will actually cause failure if your site modifies its order_numbers in any way.
Find attached a patch switching these variables around.
| Comment | File | Size | Author |
|---|---|---|---|
| order_number_to_id.patch | 3.18 KB | kingandy |
Comments
Comment #1
kingandyUpgrading to critical because this WILL break people's sites.
Comment #2
ikos commentedHi Andy,
I think an old issue convinced me to pursue a route of changing things to order_number rather than order_id in 3d secure. However your comments make perfect sense and the patch works for me.
I agree with your assessment of severity and will apply this before we go to RC.
Thanks again!
Rich
Comment #3
ikos commented