Changeset 673598
- Timestamp:
- 02/26/2013 02:51:12 PM (13 years ago)
- Location:
- quickpay-payment-gateway-for-wp-e-commerce/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
wp-e-commerce-quickpay.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quickpay-payment-gateway-for-wp-e-commerce/trunk/readme.txt
r611040 r673598 3 3 Tags: quickpay, merchant, payment gateway, wpec, wp e-commerce, e-commerce 4 4 Requires at least: 3.0.1 5 Tested up to: 3. 4.26 Stable tag: 1.3 5 Tested up to: 3.5.1 6 Stable tag: 1.3.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 27 27 28 28 = 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.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. 30 30 31 31 = Upgrading from the old non-plugin version of the payment gateway? = … … 52 52 1. Delete the `quickpay.php` file 53 53 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 54 59 = 1.3 = 55 * Changed to a 'real'plugin.60 * Changed to a "real" plugin. 56 61 * Added trailing slash for callback url if WordPress site address is trailing slash-less. 57 62 * Added new config field for specifying protocol version. -
quickpay-payment-gateway-for-wp-e-commerce/trunk/wp-e-commerce-quickpay.php
r611028 r673598 4 4 Plugin URI: http://quickpay.net/modules/wordpress/ 5 5 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 7 7 Author: Uffe Fey, WordPress consultant 8 8 Author URI: http://wpkonsulent.dk … … 38 38 39 39 if(!get_option('quickpay_protocol') <> '') 40 update_option('quickpay_protocol', ' 6');40 update_option('quickpay_protocol', '7'); 41 41 42 42 if(!get_option('quickpay_cardtypelock') <> '') … … 84 84 if(!empty($md5)) 85 85 { 86 $protocol = (int)get_option('quickpay_protocol'); 87 86 88 $new_transaction = $_POST['transaction']; 87 89 $currency = get_option('quickpay_currency'); … … 102 104 $cardhash = $_POST['cardhash']; 103 105 $cardexpire = $_POST['cardexpire']; 106 107 if($protocol >= 7) 108 $acquirer = $_POST['acquirer']; 109 104 110 $splitpayment = $_POST['splitpayment']; 105 111 $fraudprobability = $_POST['fraudprobability']; … … 107 113 $fraudreport = $_POST['fraudreport']; 108 114 $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; 109 122 110 $md5check = md5($m sgtype . $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); 111 124 112 125 if($md5 == $md5check) 113 126 { 114 127 // 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"); 116 130 } 117 131 else
Note: See TracChangeset
for help on using the changeset viewer.