gabrielbull / php-ups-api

PHP Wrapper for all UPS API
MIT License
456 stars 255 forks source link

Mail Innovations Tracking Number not recognized as such #260

Closed brianherbert closed 4 years ago

brianherbert commented 4 years ago

https://github.com/gabrielbull/php-ups-api/blob/e4cab940d76c0fb0b7ddbf2a0c6f6299fc9dcbcd/src/Tracking.php#L189

isMailInnovations() is returning false for a valid Mail Innovations number: 92612909841003543402721592 - This prevents the API from working properly.

$tracking->track("92612909841003543402721592");

... throws an error that it's invalid. When forcing isMailInnovations() to return true, it works. The regex patterns probably need to be reviewed to catch this case.

gabrielbull commented 4 years ago

@brianherbert This library has no maintainer and is looking for one.