UPS Shipping using RESTful/OAuth API [Support Thread]
FWIW, I'm getting close to having a beta version of the UPS shipping module that makes use of the now-current RESTful API using OAuth authentication. Once the beta is published, I'll be asking for help in the validation of its interface as I don't have access to any non-US sites that make use of UPS shipping nor do I have access to a site that uses negotiated rates.
The plugin's GitHub repository is https://github.com/lat9/upsoauth and instructions as to how to receive the OAuth Client ID and Client Secret can be found here: https://github.com/lat9/upsoauth/wik...-Client-Secret
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
@lat9
Thanks so much for all you do for the ZC family.
I am reminded of a saying of my grandmother's
Quote:
You can't pour coffee from an empty pot.
We are a vessel and, if we are not whole, we have a problem filling someone else's.
Make sure you take the time needed for yourself.:hug:
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Hi @lat9,
I'm so lucky to see this post today. Thanks for your contribution.
I have followed your detailed guide to create my OAuth app. I'm more than happy to test this plug-in.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
I also have a customer who will want to use this as soon as it's ready. Thanks @lat9!
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Let the games begin! I've just published (on GitHub) a pre-release v0.0.0: https://github.com/lat9/upsoauth/releases/tag/v0.0.0
Follow the instructions in that GitHub repository's Wiki (see the first post for direct link) to retrieve your UPS OAuth credentials.
I have not validated:
- On Zen Cart versions prior to 1.5.8a. If you're validating on a previous Zen Cart version, please post here so that I'm aware of the versions on which it's been tested.
- Negotiated Rates. I'm pretty sure (i.e. not sure) that there are different response fields that will come back with negotiated rates. If you have an an account with UPS that has negotiated rates, please let me know.
- Non-US "Origins". I don't think that there will be issues, but wanted all to know.
The majority of the documentation will remain online on the module's GitHub repository (https://github.com/lat9/upsoauth), but I'll be getting a minimal readme together for the v1.0.0 release.
The pre-release module displays its name a United Parcel Service (OAuth), enabling you to have it enabled side-by-side with the current (and to-be-deprecated) UPS-XML version and distinguish the two module's outputs. The OAuth suffix will be removed for the v1.0.0 release.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
v0.0.1 (still beta/pre-release) now available on GitHub: https://github.com/lat9/upsoauth/releases/tag/v0.0.1
This version now returns negotiated rates if so configured, corrects the number of parameters required to zen_get_zone_code for Zen Cart versions prior to 1.5.8 and removes use of the PHP null-coalesce operation since that operator wasn't available until PHP 7.0.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Hi @lat9,
I just tried v0.0.1 from Github, but I cannot make it work.
Test #1: zc 1.5.7d & PHP 7.4
After I entered my Client ID, Client Secret, UPS shipper number, I cannot get a shipping quote (no UPS section showing up). I tried to enable debug but no log files were generated. I tried both test mode and production mode, no difference.
Test #2: zc 1.5.8 & PHP 8.0
Same result. No quote, no debug files...
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Update: I spoken too early.
In the "estimate shipping" section in the shopping cart, I cannot get a UPS quote. No UPS section is displayed.
But if I tried to checkout, I can see the UPS quote there.
Still no debug/log files generated, even I enable the debug option.
zc 1.5.7d
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Quote:
Originally Posted by
njcyx
Update: I spoken too early.
In the "estimate shipping" section in the shopping cart, I cannot get a UPS quote. No UPS section is displayed.
But if I tried to checkout, I can see the UPS quote there.
Still no debug/log files generated, even I enable the debug option.
zc 1.5.7d
the debug option works.
if you are not getting any quotes that suggests something is failing prior to the quote. in which case you should see a ZC debug log.
if you are not seeing that log, i would talk to your hosting company. systems should generate error logs; if they do not then there is something wrong for the system config and you need to talk to your hosting company about being able to see them and track them down.
best.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Hi @carlwhat
Sorry, I spoken too early again.
I only used "Display Log Files" function in zc admin page to view the log files, and I cannot find it there. After I used FTP to view the /logs folder, I can find the UPS log files there. Format is upsoauth-2023xxxx.log.
Can you get a UPS shipping quote in the "estimate shipping" page in the shopping cart?
Hi @lat9,
-Here is my input regarding the negotiated rates. Our UPS account has a negotiated rates. I tried all your provided Customer Classification Code options, here is what I found:
For 00, 05 and 06, they display the same rate (negotiated rate). But for 01, 04 and 53, I have three different rates. Here is the compare result:
00<53<04<01
Not sure why there are four different rates under my UPS account.
- I have one more input for the pickup method. Here are five options available in this plug-in:
Daily Pickup, Customer Counter, One Time Pickup, On Call Air Pickup, Letter Center and Air Service Center
Daily Pickup, Customer Counter, One Time Pickup: no rate changes.
On Call Air Pickup: $13 is added on every tiers.
Letter Center and Air Service Center: Ground and 3 day select options were gone. No price difference.