Plugin Directory

Changeset 726687


Ignore:
Timestamp:
06/14/2013 02:42:45 PM (13 years ago)
Author:
wpkonsulent
Message:

Added support for WP e-Commerce 3.8.11.1.

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

    r673598 r726687  
    44Requires at least: 3.0.1
    55Tested up to: 3.5.1
    6 Stable tag: 1.3.1
     6Stable tag: 1.3.2
    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.9.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.11.1. 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? =
     
    51511. Navigate to `wp-content/plugins/wp-e-commerce/wpsc-merchants` folder
    52521. Delete the `quickpay.php` file
     53
     54= 1.3.2 =
     55* Added support for WP e-Commerce 3.8.11.1. Apparently they changed how purchase receipts are handled, so no email were being sent to the customer.
    5356
    5457= 1.3.1 =
  • quickpay-payment-gateway-for-wp-e-commerce/trunk/wp-e-commerce-quickpay.php

    r673598 r726687  
    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.1
     6    Version: 1.3.2
    77    Author: Uffe Fey, WordPress consultant
    88    Author URI: http://wpkonsulent.dk
     
    127127                            // Order is accepted.
    128128                            $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");
     129                           
     130                            // old way of doing it..
     131                            //$wpdb->query("UPDATE " . WPSC_TABLE_PURCHASE_LOGS . " SET processed = '3', transactid = '" . $new_transaction . "', date = '" . time() . "', notes = '" . $notes . "' WHERE sessionid = " . $sessionid . " LIMIT 1");
     132                           
     133                            $purchase_log = new WPSC_Purchase_Log($sessionid, 'sessionid');
     134                           
     135                            if(!$purchase_log->exists() || $purchase_log->is_transaction_completed())
     136                                return;
     137
     138                            $purchase_log->set('processed', WPSC_Purchase_Log::ACCEPTED_PAYMENT);
     139                            $purchase_log->set('transactid', $new_transaction);
     140                            $purchase_log->set('notes', $notes);
     141                            $purchase_log->save();
    130142                        }
    131143                        else
Note: See TracChangeset for help on using the changeset viewer.