You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can tell it's not changing any of the values as the trimmed values are not saved in the original values by trim().
Note: If you decide to fix this with a proper callback so that original values get changed, be careful to only trim values which are of type "string". Trimming int/float results in string and Ogone will fail when, for example, "AMOUNT" is a string.
Note: If you are using the toArray() function (from AbstractRequest) to create your form, the returned parameters will not be trimmed, which will result in an incorrectly signed payment.
So I guess this trim function should just be removed, or the toArray() function should trim the values as well.
Is this extra array_walk doing anything to the values? https://github.com/marlon-be/marlon-ogone/blob/master/lib/Ogone/ParameterFilter/GeneralParameterFilter.php#L19
As far as I can tell it's not changing any of the values as the trimmed values are not saved in the original values by trim().
Note: If you decide to fix this with a proper callback so that original values get changed, be careful to only trim values which are of type "string". Trimming int/float results in string and Ogone will fail when, for example, "AMOUNT" is a string.
Something like:
The text was updated successfully, but these errors were encountered: