Oh wow, talk about a needle in a haystack!
Fortunately it's only related to PayPal Express Checkout.
In v155 we added the ability for the store to record any notes the customer enters on the PayPal side ... and because there are two parts to that, we dropped a space in between to separate them for readability. Unfortunately that space survives even when the customer enters no comments.
The fix is simple ... in the paypalwpp.php module, line 1838 you have: ```
'order_comment' => urldecode($response['NOTE']) . ' ' . urldecode($response['PAYMENTREQUEST_0_NOTETEXT']),
'order_comment' => (isset($response['NOTE']) || isset($response['PAYMENTREQUEST_0_NOTETEXT']) ? urldecode($response['NOTE']) . ' ' . urldecode($response['PAYMENTREQUEST_0_NOTETEXT']) : ''),
Another approach could be the following, but I prefer the above approach because the following one is cleaning up what's added, instead of not adding it in the first place:```
'order_comment' => trim(urldecode($response['NOTE']) . ' ' . urldecode($response['PAYMENTREQUEST_0_NOTETEXT'])),
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.