HTTP_X_FORWARDED_FOR info not saved when using standard payment methods #8203
Labels
bug report
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Preconditions
Steps to reproduce
Expected result
Actual result
I've tracked this down to two basic issues. One, the quote table does not have an x_forwarded_for column, which is likely the root issue. The reason that PayPal methods populate this data is because they use the session to load the quote. The session getQuote function automatically populates the remote_ip and x_forwarded_for data on the quote model. However, the standard API functions load the quote data from the database without instantiating this data.
Because the data for x_forwarded_for is not saved into the database (there is no column present), this information is not loaded or instantiated in this final order conversion step and thus fails to be written to the order table.
An ideal solution probably involves both adding the x_forwarded_for data to the quote table and instantiating this data in the getActive function in the QuoteRepository model (which is the method used to load the data when placing the order with the above endpoints).
The text was updated successfully, but these errors were encountered: