Download the PHP package pass-qa/delivery without Composer
On this page you can find all versions of the php package pass-qa/delivery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package delivery
Pass Delivery: Api package library
About API
See the integration page for description of pass delivery api.
Documentation
See the documentation for pass delivery api documentation.
Installation
Optional:
The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:
Publish files
You should publish the config/passdelivery.php config file with:
After that, you should put your api_key in config file, also you can set test_mode to true for development or false for production.
Usage Instructions
First Step
You must generate a token. See this page to learn how to create a token.
create new object
calculate order price before create order
Request a quote to receive your exact delivery fee for an order by using the origin address and destination addresses.
This endpoint retrieves calculation information in the format of for a pair of {latitude, longitude} coordinates.
use object
or use facade
create an order
Once you calculated the price of your order, you can use this endpoint in order to create a new order.
use object
or use facade
tracking driver of your order
Once you successfully have created an order, you will be able to watch the Pass driver on a live map.
The driver's location and order status will be change as the driver is moving.
The 'order id' is available in the create API response
use object
or use facade
get order detail
Call the following endpoint in order to get the order details.
The order details include:
- Pickup and Dropoff details including description
- Driver details including name, phone number, avatar and vehicle information
- Order price and payment details
- Order statuses
- Share URL. A tool which you can use to share a link with your clients to view the live driver status.
The 'order id' is available in the create API response
use object
or use facade
cancel an order
You can cancel any order before courier arrival (before the pickup status)
The 'order id' is available in the create API response
use object
or use facade
list of orders
List of all submitted orders by your tokens
use object
or use facade
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of delivery with dependencies
ext-json Version *