!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/smabpro.picotech.app/public_html/vendor/xendit/xendit-php/examples/   drwxr-xr-x
Free 28.15 GB of 117.98 GB (23.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CardlessCreditExample.php (2.13 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * CardlessCreditExample.php
 * php version 7.2.0
 *
 * @category Example
 * @package  Xendit/Examples
 * @author   Ellen <ellen@xendit.co>
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     https://api.xendit.co
 */

use Xendit\Xendit;

require 
'vendor/autoload.php';

Xendit::setApiKey('SECRET_API_KEY');

$params = [
    
'cardless_credit_type' => 'KREDIVO',
    
'external_id' => 'test-cardless-credit-02',
    
'amount' => 800000,
    
'payment_type' => '3_months',
    
'items' => [
        [
            
'id' => '123123',
            
'name' => 'Phone Case',
            
'price' => 200000,
            
'type' => 'Smartphone',
            
'url' => 'http=>//example.com/phone/phone_case',
            
'quantity' => 2
        
],
        [
            
'id' => '234567',
            
'name' => 'Bluetooth Headset',
            
'price' => 400000,
            
'type' => 'Audio',
            
'url' => 'http=>//example.com/phone/bluetooth_headset',
            
'quantity' => 1
        
]
    ],
    
'customer_details' => [
        
'first_name' => 'customer first name',
        
'last_name' => 'customer last name',
        
'email' => 'customer@yourwebsite.com',
        
'phone' => '081513114262'
    
],
    
'shipping_address' => [
        
'first_name' => 'first name',
        
'last_name' => 'last name',
        
'address' => 'Jalan Teknologi No. 12',
        
'city' => 'Jakarta',
        
'postal_code' => '12345',
        
'phone' => '081513114262',
        
'country_code' => 'IDN'
    
],
    
'redirect_url' => 'https://example.com',
    
'callback_url' => 'http://example.com/callback-cardless-credit'
];

$createPayment \Xendit\CardlessCredit::create($params);
var_dump($createPayment);

$params = [
    
'cardless_credit_type' => 'KREDIVO',
    
'amount' => 2000000,
    
'items' => [
        [
            
'id' => '123123',
            
'name' => 'Phone Case',
            
'price' => 1000000,
            
'type' => 'Smartphone',
            
'url' => 'http://example.com/phone/phone_case',
            
'quantity' => 2
        
]
    ]
];

$calculatePaymentTypes \Xendit\CardlessCredit::calculatePaymentTypes($params);
var_dump($calculatePaymentTypes);

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