Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Invoice Number preg_replace() adjustment..?? #467
A user is reporting that they are using a custom order ID plugin with WooCommerce that generates invoice IDs like this: 0518A1
For some reason, though, the A is getting stripped and the value sent to PayPal is 05181.
Looking at our Express Checkout class I see that we're doing the following with the $invoice_number:
I'm not sure why we're doing that, but it seems that this could be why the A is getting stripped from the value..??
We need to fix this issue, and also check the other gateways to ensure we aren't doing the same thing (ie. DDP, PayFlow, REST, etc.)