Changeset 1459083
- Timestamp:
- 07/22/2016 03:25:54 PM (10 years ago)
- Location:
- iran-donate/trunk
- Files:
-
- 3 edited
-
include/frontend.php (modified) (4 diffs)
-
iran-donate.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iran-donate/trunk/include/frontend.php
r1458046 r1459083 28 28 29 29 // URL also can be ir.zarinpal.com or de.zarinpal.com 30 $client = new SoapClient('https://www.zarinpal.com/pg/services/WebGate/wsdl', ['encoding' => 'UTF-8']);31 32 $result = $client->PaymentRequest( [30 $client = new SoapClient('https://www.zarinpal.com/pg/services/WebGate/wsdl', array('encoding' => 'UTF-8')); 31 32 $result = $client->PaymentRequest(array( 33 33 'MerchantID' => $MerchantID, 34 34 'Amount' => $Amount, … … 37 37 'Mobile' => $Mobile, 38 38 'CallbackURL' => $CallbackURL, 39 ]);39 )); 40 40 41 41 //Redirect to URL You can do it also by creating a form … … 60 60 61 61 62 $SandBox = true;62 $SandBox =false; 63 63 $MerchantCode = get_option('irdonate_faragatepal_username'); 64 64 $PriceValue = $data['amount']; //Rial … … 263 263 if ($_GET['Status'] == 'OK') { 264 264 // URL also can be ir.zarinpal.com or de.zarinpal.com 265 $client = new SoapClient('https://www.zarinpal.com/pg/services/WebGate/wsdl', ['encoding' => 'UTF-8']);266 267 $result = $client->PaymentVerification( [265 $client = new SoapClient('https://www.zarinpal.com/pg/services/WebGate/wsdl', array('encoding' => 'UTF-8')); 266 267 $result = $client->PaymentVerification(array( 268 268 'MerchantID' => $MerchantID, 269 269 'Authority' => $Authority, 270 270 'Amount' => $Amount, 271 ]);271 )); 272 272 273 273 if ($result->Status == 100) { -
iran-donate/trunk/iran-donate.php
r1458064 r1459083 5 5 Plugin URI: http://siteamoz.ir 6 6 Description: پلاگین حمایت از سایت با درگاه های فراگیت و زرین پال 7 Version: 1.0. 17 Version: 1.0.2 8 8 Author: Javad Jazandari 9 9 Author URI: http://jazandari.ir -
iran-donate/trunk/readme.txt
r1458055 r1459083 6 6 Requires at least: 3.5 7 7 Tested up to: 4.5.3 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 2. pulgin payment form. 52 52 3. plugin show paymenyt page. 53 54 == Changelog == 55 56 = 1.0.2 = 57 * A change since the previous version. 58 * Another change. 59 60 61 == Upgrade Notice == 62 63 = 1.0.0 = 64 Upgrade notices describe the reason a user should upgrade. No more than 300 characters. 65 66 = 1.0.2 = 67 This version fixes a security related bug. Upgrade immediately. 68
Note: See TracChangeset
for help on using the changeset viewer.