ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/thietkewebvumi.com/lib/payment/ |
<?php // Include the paypal library include_once ('Authorize.php'); // Create an instance of the authorize.net library $myAuthorize = new Authorize(); // Specify your authorize.net login and secret $myAuthorize->setUserInfo('YOUR_LOGIN', 'YOUR_SECRET_KEY'); // Specify the url where authorize.net will send the user on success/failure $myAuthorize->addField('x_Receipt_Link_URL', 'http://YOUR_HOST/payment/authorize_success.php'); // Specify the url where authorize.net will send the IPN $myAuthorize->addField('x_Relay_URL', 'http://YOUR_HOST/payment/authorize_ipn.php'); // Specify the product information $myAuthorize->addField('x_Description', 'T-Shirt'); $myAuthorize->addField('x_Amount', '9.99'); $myAuthorize->addField('x_Invoice_num', rand(1, 100)); $myAuthorize->addField('x_Cust_ID', 'muri-khao'); // Enable test mode if needed $myAuthorize->enableTestMode(); // Let's start the train! $myAuthorize->submitPayment();