Plugin Directory

Changeset 1459083


Ignore:
Timestamp:
07/22/2016 03:25:54 PM (10 years ago)
Author:
pash2048
Message:

fixed some think

Location:
iran-donate/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • iran-donate/trunk/include/frontend.php

    r1458046 r1459083  
    2828
    2929    // 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(
    3333        'MerchantID' => $MerchantID,
    3434        'Amount' => $Amount,
     
    3737        'Mobile' => $Mobile,
    3838        'CallbackURL' => $CallbackURL,
    39     ]);
     39    ));
    4040
    4141    //Redirect to URL You can do it also by creating a form
     
    6060
    6161
    62     $SandBox             =true;
     62    $SandBox             =false;
    6363    $MerchantCode        = get_option('irdonate_faragatepal_username');
    6464    $PriceValue          = $data['amount']; //Rial
     
    263263    if ($_GET['Status'] == 'OK') {
    264264        // 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(
    268268            'MerchantID'     => $MerchantID,
    269269            'Authority'      => $Authority,
    270270            'Amount'         => $Amount,
    271         ]);
     271        ));
    272272
    273273        if ($result->Status == 100) {
  • iran-donate/trunk/iran-donate.php

    r1458064 r1459083  
    55Plugin URI: http://siteamoz.ir
    66Description: پلاگین حمایت از سایت با درگاه های فراگیت و زرین پال
    7 Version: 1.0.1
     7Version: 1.0.2
    88Author: Javad Jazandari
    99Author URI: http://jazandari.ir
  • iran-donate/trunk/readme.txt

    r1458055 r1459083  
    66Requires at least: 3.5
    77Tested up to: 4.5.3
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    51512. pulgin payment form.
    52523. 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 =
     64Upgrade notices describe the reason a user should upgrade.  No more than 300 characters.
     65
     66= 1.0.2 =
     67This version fixes a security related bug.  Upgrade immediately.
     68
Note: See TracChangeset for help on using the changeset viewer.