Comments (1)
Are you encoding/decoding the $address
when trying to return it?
I setup a local Laravel setup with a ShippingController and was able to return back the results of an address call using the wrapper.
Although I did end up adjusting \Shippo::setApiKey(env('SHIPPO_API_KEY'));
in app/Providers/AppServiceProvider.php
file's boot()
to simply use \Shippo::setApiKey('SHIPPO_API_KEY');
.
Any other details about how you're returning the address back might help in identifying why you're getting an empty response back. Whenever I called json_encode($address)
it would return an empty object, but if I just returned $address
it returned a full JSON response back.
from shippo-php-client.
Related Issues (20)
- No Rates available "FROM" other countries "TO" other countries as well as TO United States FROM other countries HOT 2
- How to get rates including usps flat?
- Shipping Rates is empty from_address BD
- How Can I get the to_address from a Shippo_Transaction HOT 1
- Empty extra array results in API failure HOT 2
- {"parcels": [{"extra": ["Invalid format of the 'extra' object. The accepted format is 'extra': {}"]}]} HOT 1
- Incorrect API response
- PHP7.4 array access violation HOT 1
- Support Orders HOT 1
- Shippo Will not Sync Woocommerce Orders with Litespeed Cache HOT 1
- Circular documentation, error messages go where? HOT 2
- Create Shipment with Multiple Parcels not working HOT 4
- Shipment Tracking
- How to pass package Info from Shippo creating order API HOT 1
- Transactions array provided in order details endpoint is incomplete and incorrect.
- OAuth : Transaction details endpoint gives 404.
- Rates at Checkout
- Shipment
- Floating Point Number problem in CurlClient
- Issue when using PHP 8.2+ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shippo-php-client.