Plugin Directory

Changeset 1545972


Ignore:
Timestamp:
12/05/2016 03:45:08 PM (9 years ago)
Author:
datenwerk
Message:
Location:
woocommerce-mpay24-gateway/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-mpay24-gateway/trunk/admin/gateway-mpay24-install.php

    r1034503 r1545972  
    1717
    1818    $collate = '';
    19     if ( $wpdb->supports_collation() ) {
     19    if ( $wpdb->has_cap( 'collation' ) ) {
    2020        if ( ! empty( $wpdb->charset ) ) {
    2121            $collate .= "DEFAULT CHARACTER SET $wpdb->charset";
  • woocommerce-mpay24-gateway/trunk/class-wc-mpay24-shop.php

    r1034441 r1545972  
    567567        $mdxi->Order->TemplateSet = 'WEB';
    568568        $mdxi->Order->TemplateSet->setLanguage( $this->getLanguage() );
    569         $mdxi->Order->TemplateSet->setCSSName( 'MOBILE' ); // use responsive template
     569        $mdxi->Order->TemplateSet->setCSSName( 'MODERN' ); // use responsive template
    570570       
    571571        $mdxi->Order->PaymentTypes->setEnable( 'true' );
     
    594594        //$mdxi->Order->Customer->setUseProfile( 'true' ); // proSafe required
    595595
    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();
    600604
    601605        /**
  • woocommerce-mpay24-gateway/trunk/gateway-mpay24.php

    r1542083 r1545972  
    44    Plugin URI: http://wordpress.org/plugins/woocommerce-mpay24-gateway/
    55    Description: Add mPAY24 Payment Gateway to WooCommerce Plugin
    6     Version: 1.5.2
     6    Version: 1.5.3
    77    Author: datenwerk innovationsagentur GmbH
    88    Author URI: http://www.datenwerk.at
     
    2222
    2323    if ( ! defined( 'GATEWAY_MPAY24_VERSION' ) ) {
    24         define( 'GATEWAY_MPAY24_VERSION', '1.5.2' );
     24        define( 'GATEWAY_MPAY24_VERSION', '1.5.3' );
    2525    }
    2626    if ( ! defined( 'GATEWAY_MPAY24_TABLE_NAME' ) ) {
     
    175175                $this->method_title       = __( 'mPAY24', 'wc-mpay24' ); // backend title
    176176                $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' );
    178178
    179179                require_once( GATEWAY_MPAY24_PATH . 'class-wc-mpay24-shop.php' );
     
    550550                }
    551551                $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                }
    552555
    553556                $shop->setPageBgColor( $this->page_bg_color );
     
    690693                if ( ! empty( $_GET ) && $this->check_ipn_request_is_valid() ) {
    691694                    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)
    692696                    do_action( 'valid_mpay24_standard_request', $_GET );
    693697                } else {
     
    740744                            }
    741745                        break;
    742                         case 'suspended':
     746                        case 'suspended':
    743747                        case 'reserved':
    744748                            // Order pending
  • woocommerce-mpay24-gateway/trunk/readme.txt

    r1542060 r1545972  
    66Requires at least: 3.5
    77Tested up to: 4.6.1
    8 Stable tag: 1.5.2
     8Stable tag: 1.5.3
    99License: GNU General Public License v3.0
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    7777== Changelog ==
    7878
     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
    7986= 1.5.2 - 2016-11-28 =
    8087
    8188* 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
    8290
    8391= 1.5.1 - 2014-11-28 =
Note: See TracChangeset for help on using the changeset viewer.