Plugin Directory

Changeset 673598


Ignore:
Timestamp:
02/26/2013 02:51:12 PM (13 years ago)
Author:
wpkonsulent
Message:

Update to 1.3.1 - see change log.

Location:
quickpay-payment-gateway-for-wp-e-commerce/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quickpay-payment-gateway-for-wp-e-commerce/trunk/readme.txt

    r611040 r673598  
    33Tags: quickpay, merchant, payment gateway, wpec, wp e-commerce, e-commerce
    44Requires at least: 3.0.1
    5 Tested up to: 3.4.2
    6 Stable tag: 1.3
     5Tested up to: 3.5.1
     6Stable tag: 1.3.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2727
    2828= Compatability =
    29 The plugin has been tested with WP e-Commerece 3.8.8.5. I can't guarantee that it will work with older versions of WP e-Commerce.
     29The plugin has been tested with WP e-Commerece 3.8.9.5. I can't guarantee that it will work with older versions of WP e-Commerce.
    3030
    3131= Upgrading from the old non-plugin version of the payment gateway? =
     
    52521. Delete the `quickpay.php` file
    5353
     54= 1.3.1 =
     55* Changed default protocol version from 6 to 7.
     56* Added new 'acquirer' field to callback mechanism if protocol version is 7 and up.
     57* Added 'fraudprobability', 'fraudremarks' and 'fraudreport' to the notes of accepted orders.
     58
    5459= 1.3 =
    55 * Changed to a 'real' plugin.
     60* Changed to a "real" plugin.
    5661* Added trailing slash for callback url if WordPress site address is trailing slash-less.
    5762* Added new config field for specifying protocol version.
  • quickpay-payment-gateway-for-wp-e-commerce/trunk/wp-e-commerce-quickpay.php

    r611028 r673598  
    44    Plugin URI: http://quickpay.net/modules/wordpress/
    55    Description: Adds the Quickpay payment option into WP e-Commerce. Quickpay is a Danish online payment gateway. <strong>If you need support, please <a href="http://quickpay.net/contact/" target="_new">contact Quickpay</a>.</strong>
    6     Version: 1.3
     6    Version: 1.3.1
    77    Author: Uffe Fey, WordPress consultant
    88    Author URI: http://wpkonsulent.dk
     
    3838               
    3939            if(!get_option('quickpay_protocol') <> '')
    40                 update_option('quickpay_protocol', '6');
     40                update_option('quickpay_protocol', '7');
    4141               
    4242            if(!get_option('quickpay_cardtypelock') <> '')
     
    8484                    if(!empty($md5))
    8585                    {
     86                        $protocol = (int)get_option('quickpay_protocol');
     87                   
    8688                        $new_transaction = $_POST['transaction'];
    8789                        $currency = get_option('quickpay_currency');
     
    102104                        $cardhash = $_POST['cardhash'];
    103105                        $cardexpire = $_POST['cardexpire'];
     106                       
     107                        if($protocol >= 7)
     108                            $acquirer = $_POST['acquirer'];
     109                           
    104110                        $splitpayment = $_POST['splitpayment'];
    105111                        $fraudprobability = $_POST['fraudprobability'];
     
    107113                        $fraudreport = $_POST['fraudreport'];
    108114                        $fee = $_POST['fee'];
     115                       
     116                        $md5tmp = $msgtype . $ordernumber . $amount . $currency . $time . $state . $qpstat . $qpstatmsg . $chstat . $chstatmsg . $merchant . $merchantemail . $new_transaction . $cardtype . $cardnumber . $cardhash . $cardexpire;
     117
     118                        if($protocol >= 7)
     119                            $md5tmp .= $acquirer;
     120
     121                        $md5tmp .= $splitpayment . $fraudprobability . $fraudremarks . $fraudreport . $fee . $secret;
    109122                                                   
    110                         $md5check = md5($msgtype . $ordernumber . $amount . $currency . $time . $state . $qpstat . $qpstatmsg . $chstat . $chstatmsg . $merchant . $merchantemail . $new_transaction . $cardtype . $cardnumber . $cardhash . $cardexpire . $splitpayment . $fraudprobability . $fraudremarks . $fraudreport . $fee . $secret);
     123                        $md5check = md5($md5tmp);
    111124                   
    112125                        if($md5 == $md5check)
    113126                        {
    114127                            // Order is accepted.
    115                             $wpdb->query("UPDATE " . WPSC_TABLE_PURCHASE_LOGS . " SET processed = '3', transactid = '" . $new_transaction . "', date = '" . time() . "', notes = 'Payment approved at Quickpay with transaction id " . $new_transaction . ", card type " . $cardtype . ", amount " . $amount . "' WHERE sessionid = " . $sessionid . " LIMIT 1");
     128                            $notes = "Payment approved at Quickpay:\ntransaction id: " . $new_transaction . "\ncard type: " . $cardtype . "\namount: " . $amount . "\nfraud probability: " . $fraudprobability . "\nfraud remarks: " . $fraudremarks . "\nfraud report: " . $fraudreport;
     129                            $wpdb->query("UPDATE " . WPSC_TABLE_PURCHASE_LOGS . " SET processed = '3', transactid = '" . $new_transaction . "', date = '" . time() . "', notes = '" . $notes . "' WHERE sessionid = " . $sessionid . " LIMIT 1");
    116130                        }
    117131                        else
Note: See TracChangeset for help on using the changeset viewer.