PHP code example of nguyenanhung / paypal-upload-tracking
1. Go to this page and download the library: Download nguyenanhung/paypal-upload-tracking library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nguyenanhung / paypal-upload-tracking example snippets
/**
* Project paypal-upload-tracking
* Created by PhpStorm
* User: 713uk13m <[email protected]>
* Copyright: 713uk13m <[email protected]>
* Date: 08/27/2021
* Time: 04:40
*/
= '';
$secretId = '';
$transactionId = '';
$trackingNumber = '';
$trackingCarrier = '';
$trackingCarrierNameOther = '';
$fulfillmentStatus = '';
$tracking = new Tracking();
$tracking->setSdkConfig($sdkConfig)
->setClientId($clientId)
->setSecretId($secretId)
->setTransactionId($transactionId)
->setTrackingNumber($trackingNumber)
->setTrackingCarrier($trackingCarrier)
->setTrackingCarrierNameOther($trackingCarrierNameOther)
->setFulfillmentStatus($fulfillmentStatus)
->requestAccessToken();
echo "<pre>";
print_r($tracking->uploadTracking());
echo "</pre>";