![]() And every business should keep itself equipped with a good package tracking software to check on the status of the deliverables at regular intervals. Timely and secure package delivery plays a crucial role in such cases. The AddressValidationResponse object provides a number of methods to allow you to more easily query the API response toĭetermine the outcome.A lot of businesses deal with confidential documents and large shipments. Validated address, or the first candidate address if the address is ambiguous, will be returned. If you do not call this method, a single object with either the matched If you do not call this method, validateĬontinues to function as it has previously. Calling this method will causeĪddressValidation::validate() to return an AddressValidationResponse object. In the code above $xav->activateReturnObjectOnValidate() is completely optional. $xav-> activateReturnObjectOnValidate() //This is optional try AddressValidation::validateReturnAVObject() $xav = new \ Ups\ AddressValidation( $accessKey, $userId, $password) $address-> setAddressLine3( 'Address Line 3') $address-> setAddressLine2( 'Address Line 2') $address-> setAddressLine1( 'Address Line 1') $address-> setAttentionName( 'Test Test') Run the Composer command to install the latest stable version of PHP UPS API: It is recommended that you install the PHP UPS API library through composer. You will have to provide the Access Key, your UPS User ID and Password. To use the UPS API, you have to request an access key from UPS. Tracking API, Shipping API, Rating API and Time in Transit API. This library wrap all the UPS API into a simple to use PHP Library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |