1. Go to this page and download the library: Download akika/laravel-weevo 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/ */
$result = Weevo::default()->updatePaymentStatus(
"TRIP-260630-003101-7054",
[
'paymentStatus' => 'paid', // Example update data
'paymentReceivedAt' => '2024-06-01 08:00:00' // Example update data
]
);
case Pending = 'pending';
case Assigned = 'assigned';
case Picked = 'picked';
case InTransit = 'in_transit';
case DeliveryInitiated = 'delivery_initiated';
case PaymentRequested = 'payment_requested';
case Delivered = 'delivered';
case Failed = 'failed';
case Cancelled = 'cancelled';
case Returning = 'returning';
case Returned = 'returned';