Mpay24Order.php __set() preg_match to strict
Closed this issue · 2 comments
soeurdefeo commented
mpay24-php/src/Mpay24Order.php
Line 179 in 1b38315
This preg_match breaks strings like descriptions with numbers that matches the pattern.
Tested with ShoppingCart->Item( $item_key )->Description = "10,00 € fee"
False Result: 10.00
Requirement: preg_match should not replace attributes / values that are defined as strings in MDXI.xsd (a) or should at least not trim string after matching substring (b).
True Result (a): 10,00 € fee
True Result (b): 10.00 € fee
stefanpolzer commented
@soeurdefeo can you check if this is now solved in the last PR #90 that was now merged into the master tree?