Thursday, September 26, 2024
1 change · saas-17.4
Resolved issues and error corrections
This fix prevents Ingenico card payments in Point of Sale from failing because of an invalid transaction reference. Stores using Ingenico terminals can receive payments normally again, reducing checkout disruption.
Original PR description
Starting d1a94147060083da54f9423f8c379676fbb7db66, when making ingenico payment, the pos app sends an `NaN` as `TransactionID`. As a result, users are unable to receive payments from Ingenico terminal. This change proposes to take the last 13 characters of the payment's uuid (after removing the `-` separators) and convert it as integer which will serve as the `TransactionID`. We're only taking the 13 characters because it's the number of characters that can be converted to JS int without exponent.