Server IP : 108.163.255.210 / Your IP : 18.189.182.15 Web Server : Apache System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64 User : ( 1172) PHP Version : 7.2.34 Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/unilinki/public_html/unilinkindia.co.in/app/braintree/ |
Upload File : |
<?php /** * Braintree PHP Library * * Braintree base class and initialization * Provides methods to child classes. This class cannot be instantiated. * * PHP version 5 * * @copyright 2014 Braintree, a division of PayPal, Inc. */ set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__))); //print_r($_REQUEST);break; require_once('Braintree/Base.php'); require_once('Braintree/Modification.php'); require_once('Braintree/Instance.php'); require_once('Braintree/OAuthCredentials.php'); require_once('Braintree/Address.php'); require_once('Braintree/AddressGateway.php'); require_once('Braintree/AddOn.php'); require_once('Braintree/AddOnGateway.php'); require_once('Braintree/AndroidPayCard.php'); require_once('Braintree/ApplePayCard.php'); require_once('Braintree/ClientToken.php'); require_once('Braintree/ClientTokenGateway.php'); require_once('Braintree/CoinbaseAccount.php'); require_once('Braintree/Collection.php'); require_once('Braintree/Configuration.php'); require_once('Braintree/CredentialsParser.php'); require_once('Braintree/CreditCard.php'); require_once('Braintree/CreditCardGateway.php'); require_once('Braintree/Customer.php'); require_once('Braintree/CustomerGateway.php'); require_once('Braintree/CustomerSearch.php'); require_once('Braintree/DisbursementDetails.php'); require_once('Braintree/Dispute.php'); require_once('Braintree/Dispute/TransactionDetails.php'); require_once('Braintree/Descriptor.php'); require_once('Braintree/Digest.php'); require_once('Braintree/Discount.php'); require_once('Braintree/DiscountGateway.php'); require_once('Braintree/IsNode.php'); require_once('Braintree/EuropeBankAccount.php'); require_once('Braintree/EqualityNode.php'); require_once('Braintree/Exception.php'); require_once('Braintree/Gateway.php'); require_once('Braintree/Http.php'); require_once('Braintree/KeyValueNode.php'); require_once('Braintree/Merchant.php'); require_once('Braintree/MerchantGateway.php'); require_once('Braintree/MerchantAccount.php'); require_once('Braintree/MerchantAccountGateway.php'); require_once('Braintree/MerchantAccount/BusinessDetails.php'); require_once('Braintree/MerchantAccount/FundingDetails.php'); require_once('Braintree/MerchantAccount/IndividualDetails.php'); require_once('Braintree/MerchantAccount/AddressDetails.php'); require_once('Braintree/MultipleValueNode.php'); require_once('Braintree/MultipleValueOrTextNode.php'); require_once('Braintree/OAuthGateway.php'); require_once('Braintree/PartialMatchNode.php'); require_once('Braintree/Plan.php'); require_once('Braintree/PlanGateway.php'); require_once('Braintree/RangeNode.php'); require_once('Braintree/ResourceCollection.php'); require_once('Braintree/RiskData.php'); require_once('Braintree/ThreeDSecureInfo.php'); require_once('Braintree/SettlementBatchSummary.php'); require_once('Braintree/SettlementBatchSummaryGateway.php'); require_once('Braintree/SignatureService.php'); require_once('Braintree/Subscription.php'); require_once('Braintree/SubscriptionGateway.php'); require_once('Braintree/SubscriptionSearch.php'); require_once('Braintree/Subscription/StatusDetails.php'); require_once('Braintree/TextNode.php'); require_once('Braintree/Transaction.php'); require_once('Braintree/TransactionGateway.php'); require_once('Braintree/Disbursement.php'); require_once('Braintree/TransactionSearch.php'); require_once('Braintree/TransparentRedirect.php'); require_once('Braintree/TransparentRedirectGateway.php'); require_once('Braintree/Util.php'); require_once('Braintree/Version.php'); require_once('Braintree/Xml.php'); require_once('Braintree/Error/Codes.php'); require_once('Braintree/Error/ErrorCollection.php'); require_once('Braintree/Error/Validation.php'); require_once('Braintree/Error/ValidationErrorCollection.php'); require_once('Braintree/Exception/Authentication.php'); require_once('Braintree/Exception/Authorization.php'); require_once('Braintree/Exception/Configuration.php'); require_once('Braintree/Exception/DownForMaintenance.php'); require_once('Braintree/Exception/ForgedQueryString.php'); require_once('Braintree/Exception/InvalidChallenge.php'); require_once('Braintree/Exception/InvalidSignature.php'); require_once('Braintree/Exception/NotFound.php'); require_once('Braintree/Exception/ServerError.php'); require_once('Braintree/Exception/SSLCertificate.php'); require_once('Braintree/Exception/SSLCaFileNotFound.php'); require_once('Braintree/Exception/Unexpected.php'); require_once('Braintree/Exception/UpgradeRequired.php'); require_once('Braintree/Exception/ValidationsFailed.php'); require_once('Braintree/Result/CreditCardVerification.php'); require_once('Braintree/Result/Error.php'); require_once('Braintree/Result/Successful.php'); require_once('Braintree/Test/CreditCardNumbers.php'); require_once('Braintree/Test/MerchantAccount.php'); require_once('Braintree/Test/TransactionAmounts.php'); require_once('Braintree/Test/VenmoSdk.php'); require_once('Braintree/Test/Nonces.php'); require_once('Braintree/Transaction/AddressDetails.php'); require_once('Braintree/Transaction/AndroidPayCardDetails.php'); require_once('Braintree/Transaction/ApplePayCardDetails.php'); require_once('Braintree/Transaction/CoinbaseDetails.php'); require_once('Braintree/Transaction/EuropeBankAccountDetails.php'); require_once('Braintree/Transaction/CreditCardDetails.php'); require_once('Braintree/Transaction/PayPalDetails.php'); require_once('Braintree/Transaction/CustomerDetails.php'); require_once('Braintree/Transaction/StatusDetails.php'); require_once('Braintree/Transaction/SubscriptionDetails.php'); require_once('Braintree/WebhookNotification.php'); require_once('Braintree/WebhookTesting.php'); require_once('Braintree/Xml/Generator.php'); require_once('Braintree/Xml/Parser.php'); require_once('Braintree/CreditCardVerification.php'); require_once('Braintree/CreditCardVerificationGateway.php'); require_once('Braintree/CreditCardVerificationSearch.php'); require_once('Braintree/PartnerMerchant.php'); require_once('Braintree/PayPalAccount.php'); require_once('Braintree/PayPalAccountGateway.php'); require_once('Braintree/PaymentMethod.php'); require_once('Braintree/PaymentMethodGateway.php'); require_once('Braintree/PaymentMethodNonce.php'); require_once('Braintree/PaymentMethodNonceGateway.php'); require_once('Braintree/PaymentInstrumentType.php'); require_once('Braintree/UnknownPaymentMethod.php'); require_once('Braintree/Exception/TestOperationPerformedInProduction.php'); require_once('Braintree/Test/Transaction.php'); if (version_compare(PHP_VERSION, '5.4.0', '<')) { throw new Braintree_Exception('PHP version >= 5.4.0 required'); } function requireDependencies() { $requiredExtensions = array('xmlwriter', 'openssl', 'dom', 'hash', 'curl'); foreach ($requiredExtensions AS $ext) { if (!extension_loaded($ext)) { throw new Braintree_Exception('The Braintree library requires the ' . $ext . ' extension.'); } } } requireDependencies(); // braintree connection Braintree_Configuration::environment($braintree_environment); Braintree_Configuration::merchantId($braintree_merchant_id); Braintree_Configuration::publicKey($braintree_public_key); Braintree_Configuration::privateKey($braintree_private_key); if($is_transaction=='0'){ //generate token $clientToken = Braintree_ClientToken::generate(); }else if($is_transaction=='1'){ //action againts generated nonce $result = Braintree_Transaction::sale([ 'amount' => $order_price, 'taxAmount' => $total_tax, //'orderId' => '123', 'paymentMethodNonce' => $nonce, 'customer' => [ 'firstName' => $delivery_firstname, 'lastName' => $delivery_lastname, //'phone' => $customers_telephone, 'email' => $email ], 'shipping' => [ 'firstName' => $delivery_firstname, 'lastName' => $delivery_lastname, 'streetAddress' => $delivery_street_address, 'locality' => $delivery_postcode, 'region' => $delivery_state, 'postalCode' => $billing_postcode, 'countryName' => $delivery_country ], 'billing' => [ 'firstName' => $billing_firstname, 'lastName' => $billing_lastname, 'streetAddress' => $billing_street_address, 'locality' => $billing_city, 'region' => $billing_state, 'postalCode' => $billing_postcode, 'countryName' => $billing_country ], 'options' => [ 'submitForSettlement' => true ] ]); //print_r($result); }