I updated a site to the latest plugin version and moved them away from the UPS Legacy API. The UPS API calls fail to get rates if the Account Number is entered. As you know, the account number is required to get Negotiated Rates.
Looking at the logs I found the following error:
UPS: API error: “Getting unknown property: verbb\postie\providers\UPS::accountNumber”
I checked the UPS Provider class and saw that on line 411 $this->accountNumber is used rather than $this->getSetting('accountNumber') like in the rest of the code block. I made a quick edit in my vendor folder and confirmed that after changing that variable, the UPS API works and pulls the negotiated rates.
Describe the bug
I updated a site to the latest plugin version and moved them away from the UPS Legacy API. The UPS API calls fail to get rates if the Account Number is entered. As you know, the account number is required to get Negotiated Rates.
Looking at the logs I found the following error:
UPS: API error: “Getting unknown property: verbb\postie\providers\UPS::accountNumber”
I checked the UPS Provider class and saw that on line 411
$this->accountNumber
is used rather than$this->getSetting('accountNumber')
like in the rest of the code block. I made a quick edit in my vendor folder and confirmed that after changing that variable, the UPS API works and pulls the negotiated rates.Steps to reproduce
Craft CMS version
4.5.2
Plugin version
3.1.1
Multi-site?
No
Additional context
No response