Changeset 1545972
- Timestamp:
- 12/05/2016 03:45:08 PM (9 years ago)
- Location:
- woocommerce-mpay24-gateway/trunk
- Files:
-
- 4 edited
-
admin/gateway-mpay24-install.php (modified) (1 diff)
-
class-wc-mpay24-shop.php (modified) (2 diffs)
-
gateway-mpay24.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-mpay24-gateway/trunk/admin/gateway-mpay24-install.php
r1034503 r1545972 17 17 18 18 $collate = ''; 19 if ( $wpdb-> supports_collation() ) {19 if ( $wpdb->has_cap( 'collation' ) ) { 20 20 if ( ! empty( $wpdb->charset ) ) { 21 21 $collate .= "DEFAULT CHARACTER SET $wpdb->charset"; -
woocommerce-mpay24-gateway/trunk/class-wc-mpay24-shop.php
r1034441 r1545972 567 567 $mdxi->Order->TemplateSet = 'WEB'; 568 568 $mdxi->Order->TemplateSet->setLanguage( $this->getLanguage() ); 569 $mdxi->Order->TemplateSet->setCSSName( 'MO BILE' ); // use responsive template569 $mdxi->Order->TemplateSet->setCSSName( 'MODERN' ); // use responsive template 570 570 571 571 $mdxi->Order->PaymentTypes->setEnable( 'true' ); … … 594 594 //$mdxi->Order->Customer->setUseProfile( 'true' ); // proSafe required 595 595 596 $mdxi->Order->URL->Success = $this->getSuccessUrl(); 597 $mdxi->Order->URL->Error = $this->getErrorUrl(); 598 $mdxi->Order->URL->Confirmation = $this->getConfirmUrl() . '&token=' . $transaction->SECRET; 599 $mdxi->Order->URL->Cancel = $this->getCancelUrl(); 596 $mdxi->Order->URL->Success = $this->getSuccessUrl(); 597 $mdxi->Order->URL->Error = $this->getErrorUrl(); 598 if( false === strpos( $this->getConfirmUrl(), '?wc-api' ) ) { 599 $mdxi->Order->URL->Confirmation = $this->getConfirmUrl() . '?token=' . $transaction->SECRET; 600 } else { 601 $mdxi->Order->URL->Confirmation = $this->getConfirmUrl() . '&token=' . $transaction->SECRET; 602 } 603 $mdxi->Order->URL->Cancel = $this->getCancelUrl(); 600 604 601 605 /** -
woocommerce-mpay24-gateway/trunk/gateway-mpay24.php
r1542083 r1545972 4 4 Plugin URI: http://wordpress.org/plugins/woocommerce-mpay24-gateway/ 5 5 Description: Add mPAY24 Payment Gateway to WooCommerce Plugin 6 Version: 1.5. 26 Version: 1.5.3 7 7 Author: datenwerk innovationsagentur GmbH 8 8 Author URI: http://www.datenwerk.at … … 22 22 23 23 if ( ! defined( 'GATEWAY_MPAY24_VERSION' ) ) { 24 define( 'GATEWAY_MPAY24_VERSION', '1.5. 2' );24 define( 'GATEWAY_MPAY24_VERSION', '1.5.3' ); 25 25 } 26 26 if ( ! defined( 'GATEWAY_MPAY24_TABLE_NAME' ) ) { … … 175 175 $this->method_title = __( 'mPAY24', 'wc-mpay24' ); // backend title 176 176 $this->method_description = __( 'Online payment via mPAY24 payment page', 'wc-mpay24' ); // backend description 177 $this->notify_url = add_query_arg( 'wc-api', 'WC_Gateway_MPAY24', home_url( '/' ));177 $this->notify_url = WC()->api_request_url( 'WC_Gateway_MPAY24' ); 178 178 179 179 require_once( GATEWAY_MPAY24_PATH . 'class-wc-mpay24-shop.php' ); … … 550 550 } 551 551 $shop->setConfirmUrl( $this->protect_url( $this->notify_url ) ); 552 if ( 'yes' == $this->debug ) { 553 $this->log->add( 'mpay24', 'Notify URL: ' . $this->protect_url( $this->notify_url ) ); 554 } 552 555 553 556 $shop->setPageBgColor( $this->page_bg_color ); … … 690 693 if ( ! empty( $_GET ) && $this->check_ipn_request_is_valid() ) { 691 694 header( 'HTTP/1.1 200 OK' ); 695 echo "OK"; // by mPAY24 needed to check if confirmation call must be repeated (if no "OK" is shown) 692 696 do_action( 'valid_mpay24_standard_request', $_GET ); 693 697 } else { … … 740 744 } 741 745 break; 742 case 'suspended':746 case 'suspended': 743 747 case 'reserved': 744 748 // Order pending -
woocommerce-mpay24-gateway/trunk/readme.txt
r1542060 r1545972 6 6 Requires at least: 3.5 7 7 Tested up to: 4.6.1 8 Stable tag: 1.5. 28 Stable tag: 1.5.3 9 9 License: GNU General Public License v3.0 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 77 77 == Changelog == 78 78 79 = 1.5.3 - 2016-12-05 = 80 81 * Bugfix: Deprecated function call in wc_gateway_mpay24_install(), (thanks to [chesio](https://profiles.wordpress.org/chesio) for bugfix) 82 * Bugfix: $notify_url throws "403 Forbidden" error 83 * Enhancement: Changed CSSName in TemplateSet to "MODERN" (better responsive support) 84 * Enhancement: Add returncode "OK" to successful confirmation call 85 79 86 = 1.5.2 - 2016-11-28 = 80 87 81 88 * Bugfix: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data (WC 2.3.6 and higher), (thanks to [jbugella](https://profiles.wordpress.org/jbugella) for bugfix) 89 * Change Requirements: WooCommerce v2.1 or higher is needed 82 90 83 91 = 1.5.1 - 2014-11-28 =
Note: See TracChangeset
for help on using the changeset viewer.