I'm trying to test for the second character in a postal code being a '0' as this signifies that the destination is a rural address and due to some carriers charging exorbitant delivery fees for rural delivery we would like to remove those carriers as options for delivery.
The issue is that while the API doc says that the shipping_address.zip property is a string it is actually returning FalseClass.
There is no RegExp test available either which is disappointing.
How can one test if the 2nd non-white space character is a '0' ?
Solved! Go to the solution