Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefiend getRate(); #25

Open
uwejan opened this issue Feb 8, 2022 · 2 comments
Open

Undefiend getRate(); #25

uwejan opened this issue Feb 8, 2022 · 2 comments

Comments

@uwejan
Copy link

uwejan commented Feb 8, 2022

Followed the installation guide.
On latest version of laravel.
Error: Call to undefined method Ptondereau\LaravelUpsApi\Facades\UpsRate::getRate()
Testing out the ; https://github.com/gabrielbull/php-ups-api#rate-class
The following classes are imported;

use Ptondereau\LaravelUpsApi\Facades\UpsRate;
use Ups\Entity\Address;
use Ups\Entity\Dimensions;
use Ups\Entity\Package;
use Ups\Entity\PackagingType;
use Ups\Entity\ShipFrom;
use Ups\Entity\Shipment;
use Ups\Entity\UnitOfMeasurement;
@shafrazkamil
Copy link

Importing the Rate class worked for me.

use Ups\Rate;
$rate = new Rate(
            $accessKey,
            $userId,
            $password
        );

@uwejan
Copy link
Author

uwejan commented Feb 15, 2022

If am to use Rate it means am not using any facade in this case.
There is a problem with the library, i hope somebody can take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants