Plugin Directory

Changeset 925767


Ignore:
Timestamp:
06/03/2014 04:01:53 PM (12 years ago)
Author:
datenwerk
Message:

1.3 - 2014-06-03

  • Bugfix: Fatal error - Call to undefined method ListPaymentMethodsResponse::getExternalStatus()
  • Bugfix: Creating new transaction entries when failed order is payed
  • Enhancement: Replace deprecated $woocommerce->logger() with new WC_Logger() (deprecated in WC 2.1)
  • Enhancement: Use responsive payment page template (if mPAY24 set a logo for your payment page you have to call the mPAY24 support to set it also in the mobile template)
  • Enhancement: Update language files
  • Enhancement: Update FAQ and screenshots
  • New Feature: Enable CSS styling of payment page in gateway settings
Location:
woocommerce-mpay24-gateway/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-mpay24-gateway/trunk/MPay24/MDXI.xsd

    r803586 r925767  
    5151      <xs:enumeration value="SAFETYPAY"/>
    5252      <xs:enumeration value="KLARNA"/>
     53      <xs:enumeration value="SOFORT"/>
    5354    </xs:restriction>
    5455  </xs:simpleType>
     
    7677      <xs:enumeration value="HOBEX-DE"/>
    7778      <xs:enumeration value="HOBEX-NL"/>
     79      <xs:enumeration value="BILLPAY"/>
    7880      <xs:enumeration value="INVOICE"/>
    7981      <xs:enumeration value="HP"/>
     
    9193    </xs:restriction>
    9294  </xs:simpleType>
     95  <xs:simpleType name="AddressModeType">
     96    <xs:restriction base="xs:string">
     97      <xs:enumeration value="ReadOnly"/>
     98      <xs:enumeration value="ReadWrite"/>
     99    </xs:restriction>
     100  </xs:simpleType>
    93101  <xs:simpleType name="AddressFieldType">
    94102    <xs:restriction base="xs:string">
     
    96104    </xs:restriction>
    97105  </xs:simpleType>
     106  <xs:simpleType name="CustomerType">
     107    <xs:restriction base="xs:string">
     108      <xs:maxLength value="50"/>
     109    </xs:restriction>
     110  </xs:simpleType>
    98111  <xs:simpleType name="CustomerIDType">
    99112    <xs:restriction base="xs:string">
     
    104117    <xs:restriction base="xs:string">
    105118      <xs:maxLength value="12"/>
     119    </xs:restriction>
     120  </xs:simpleType>
     121  <xs:simpleType name="URLType">
     122    <xs:restriction base="xs:anyURI">
     123      <xs:pattern value="(http://|https://).{5,2040}"/>
    106124    </xs:restriction>
    107125  </xs:simpleType>
     
    211229      </xs:element>
    212230    </xs:sequence>
    213     <xs:attribute name="Mode" use="required">
    214       <xs:simpleType>
    215         <xs:restriction base="xs:string">
    216           <xs:enumeration value="ReadOnly"/>
    217           <xs:enumeration value="ReadWrite"/>
    218         </xs:restriction>
    219       </xs:simpleType>
    220     </xs:attribute>
    221231  </xs:complexType>
    222232  <xs:element name="Order">
     
    224234      <xs:sequence>
    225235        <xs:element name="ClientIP" type="ClientIPType" minOccurs="0"/>
    226         <xs:element name="UserField" type="xs:string" minOccurs="0"/>
     236        <xs:element name="UserField" minOccurs="0">
     237          <xs:simpleType>
     238            <xs:restriction base="xs:string">
     239              <xs:maxLength value="255"/>
     240            </xs:restriction>
     241          </xs:simpleType>
     242        </xs:element>
    227243        <xs:element name="Tid">
    228244          <xs:simpleType>
     
    275291          <xs:complexType>
    276292            <xs:sequence>
    277               <xs:element name="Description" type="xs:string" minOccurs="0"/>
     293              <xs:element name="Description" minOccurs="0">
     294                <xs:simpleType>
     295                  <xs:restriction base="xs:string">
     296                    <xs:maxLength value="255"/>
     297                  </xs:restriction>
     298                </xs:simpleType>
     299              </xs:element>
    278300              <xs:element name="Item" minOccurs="0" maxOccurs="unbounded">
    279301                <xs:complexType>
     
    438460          <xs:complexType>
    439461            <xs:simpleContent>
    440               <xs:extension base="xs:string">
     462              <xs:extension base="CustomerType">
    441463                <xs:attribute name="Id">
    442464                  <xs:simpleType>
     
    454476          <xs:complexType>
    455477            <xs:complexContent>
    456               <xs:extension base="AddressType"/>
     478              <xs:extension base="AddressType">
     479                <xs:attribute name="Mode" type="AddressModeType" use="required"/>
     480              </xs:extension>
    457481            </xs:complexContent>
    458482          </xs:complexType>
     
    461485          <xs:complexType>
    462486            <xs:complexContent>
    463               <xs:extension base="AddressType"/>
     487              <xs:extension base="AddressType">
     488                <xs:attribute name="Mode" type="AddressModeType" use="required"/>
     489              </xs:extension>
    464490            </xs:complexContent>
    465491          </xs:complexType>
     
    468494          <xs:complexType>
    469495            <xs:sequence>
    470               <xs:element name="Success" type="xs:anyURI" minOccurs="0"/>
    471               <xs:element name="Error" type="xs:anyURI" minOccurs="0"/>
    472               <xs:element name="Confirmation" type="xs:anyURI" minOccurs="0"/>
    473               <xs:element name="Cancel" type="xs:anyURI" minOccurs="0"/>
     496              <xs:element name="Success" type="URLType" minOccurs="0"/>
     497              <xs:element name="Error" type="URLType" minOccurs="0"/>
     498              <xs:element name="Confirmation" type="URLType" minOccurs="0"/>
     499              <xs:element name="Cancel" type="URLType" minOccurs="0"/>
    474500            </xs:sequence>
    475501          </xs:complexType>
     
    523549          </xs:complexType>
    524550        </xs:element>
     551        <xs:element name="BillingAddr" type="AddressType" minOccurs="0"/>
    525552        <xs:element name="URL" minOccurs="0">
    526553          <xs:complexType>
    527554            <xs:sequence>
    528               <xs:element name="Success" type="xs:anyURI" minOccurs="0"/>
    529               <xs:element name="Cancel" type="xs:anyURI" minOccurs="0"/>
     555              <xs:element name="Success" type="URLType" minOccurs="0"/>
     556              <xs:element name="Cancel" type="URLType" minOccurs="0"/>
    530557            </xs:sequence>
    531558          </xs:complexType>
  • woocommerce-mpay24-gateway/trunk/MPay24/MPay24Shop.php

    r803175 r925767  
    375375      } else
    376376        $this->updateTransaction($tid, $newArgs, true);
     377    } else {
     378        $this->write_log("Secret not valid: " . $this->getSecret($tid) . "!=" . $args['token'], utf8_encode($to_log)."\n");
    377379    }
    378380  }
  • woocommerce-mpay24-gateway/trunk/class-wc-mpay24-shop.php

    r696575 r925767  
    33
    44/**
    5     * Create and update transaction to mPAY24
    6     *
    7     */
     5 * Create and update transaction to mPAY24
     6 *
     7 */
    88class WC_MPAY24_Shop extends MPay24Shop {
    9     /**
    10         * @abstract    PARAMETER       VALUE(s), description
    11         *
    12         *              STRING          STATUS : OK, ERROR
    13         *              STRING          OPERATION = CONFIRMATION
    14         *              STRING          TSTATUS : RESERVED, BILLED, REVERSED, CREDITED, ERROR, SUSPENDED
    15         *              STRING          TID : length <= 32
    16         *              INTEGER         PRICE : length = 11 (e. g. "10" = "0,10")
    17         *              STRING          CURRENCY : length = 3 (ISO currency code, e. g. "EUR")
    18         *              STRING          P_TYPE : CC, ELV, EPS, GIROPAY, MAESTRO, MIA, PB, PSC, QUICK
    19         *              STRING          BRAND : AMEX, DINERS, JCB, MASTERCARD, VISA, ATOS, HOBEX-AT, HOBEX-DE, HOBEX-NL, ARZ, BA, ERSTE, HYPO, RZB, ONE, T-MOBILE
    20         *              INTEGER         MPAYTID : length = 11
    21         *              STRING          USER_FIELD
    22         *              STRING          ORDERDESC
    23         *              STRING          CUSTOMER
    24         *              STRING          CUSTOMER_EMAIL
    25         *              STRING          LANGUAGE : length = 2
    26         *              STRING          CUSTOMER_ID : length = 11
    27         *              STRING          PROFILE_STATUS : IGNORED, USED, ERROR, CREATED, UPDATED, DELETED 
    28         *              STRING          FILTER_STATUS
    29         *              STRING          APPR_CODE
    30         *              STRING          SECRET
    31         */
    32 
    33     /**
    34         * transaction id
    35         * @var        string
    36         */
     9
     10    /**
     11     * transaction id
     12     * @var        string
     13     */
    3714    protected $tid;
    3815
    3916    /**
    40         * total price
    41         * @var        decimal
    42         */
     17     * total price
     18     * @var        decimal
     19     */
    4320    protected $price;
    4421
    4522    /**
    46         * user interface language in 2 uppercased letters
    47         *
    48         * @var string
    49         */
     23     * user interface language in 2 uppercased letters
     24     *
     25     * @var string
     26     */
    5027    protected $language = 'DE';
    5128
    5229    /**
    53         * customer name from merchant website customer
    54         *
    55         * @var string
    56         */
     30     * customer name from merchant website customer
     31     *
     32     * @var string
     33     */
    5734    protected $customer;
    5835
    5936    /**
    60         * customer id from merchant website customer
    61         *
    62         * @var string
    63         */
     37     * customer id from merchant website customer
     38     *
     39     * @var string
     40     */
    6441    protected $customerId;
    6542
     43    /**
     44     * urls for callbacks
     45     *
     46     * @var string
     47     */
    6648    protected $successUrl = '';
    6749    protected $errorUrl   = '';
     
    7052
    7153    /**
    72         * logger
    73         *
    74         * @var object
    75         */
     54     * logger
     55     *
     56     * @var object
     57     */
    7658    protected $log = null;
     59
     60    /**
     61     * styling options for payment page
     62     *
     63     * @var string
     64     */
     65    protected $pageBgColor = '#ffffff';
     66    protected $logoStyle = 'max-width: 100%';
     67    protected $pageHeaderStyle = 'height: auto;line-height: 1.75em;color: #000000;margin-bottom: 10px';
     68    protected $pageCaptionStyle = 'background: transparent;color: #000000;border-radius: 0;margin: 0 5px 0 0;padding: 0;font-size: 1.167em;line-height: 1.357em;text-shadow: none';
     69    protected $pageStyle = 'background: #ffffff';
     70    protected $inputFieldsStyle = '';
     71    protected $dropDownListsStyle = '';
     72    protected $buttonsStyle = '';
     73    protected $errorsStyle = '';
     74    protected $errorsHeaderStyle = '';
     75    protected $successTitleStyle = '';
     76    protected $errorTitleStyle = '';
     77    protected $footerStyle = '';
    7778
    7879    public function getTid() {
     
    114115    public function getLog() {
    115116        return $this->log;
     117    }
     118
     119    public function getPageBgColor() {
     120        return $this->pageBgColor;
     121    }
     122
     123    public function getLogoStyle() {
     124        return $this->logoStyle;
     125    }
     126
     127    public function getPageHeaderStyle() {
     128        return $this->pageHeaderStyle;
     129    }
     130
     131    public function getPageCaptionStyle() {
     132        return $this->pageCaptionStyle;
     133    }
     134
     135    public function getPageStyle() {
     136        return $this->pageStyle;
     137    }
     138
     139    public function getInputFieldsStyle() {
     140        return $this->inputFieldsStyle;
     141    }
     142
     143    public function getDropDownListsStyle() {
     144        return $this->dropDownListsStyle;
     145    }
     146
     147    public function getButtonsStyle() {
     148        return $this->buttonsStyle;
     149    }
     150
     151    public function getErrorsStyle() {
     152        return $this->errorsStyle;
     153    }
     154
     155    public function getErrorsHeaderStyle() {
     156        return $this->errorsHeaderStyle;
     157    }
     158
     159    public function getSuccessTitleStyle() {
     160        return $this->successTitleStyle;
     161    }
     162
     163    public function getErrorTitleStyle() {
     164        return $this->errorTitleStyle;
     165    }
     166
     167    public function getFooterStyle() {
     168        return $this->footerStyle;
    116169    }
    117170
     
    233286        return $this;
    234287    }
    235 
    236     /**
    237         *              STRING          STATUS : OK, ERROR
    238         *              STRING          OPERATION = CONFIRMATION
    239         *              STRING          TID : length <= 32
    240         *              STRING          TSTATUS : RESERVED, BILLED, REVERSED, CREDITED, ERROR, SUSPENDED
    241         *              INTEGER         PRICE : length = 11 (e. g. "10" = "0,10")
    242         *              STRING          CURRENCY : length = 3 (ISO currency code, e. g. "EUR")
    243         *              STRING          P_TYPE : CC, ELV, EPS, GIROPAY, MAESTRO, MIA, PB, PSC, QUICK
    244         *              STRING          BRAND : AMEX, DINERS, JCB, MASTERCARD, VISA, ATOS, HOBEX-AT, HOBEX-DE, HOBEX-NL, ARZ, BA, ERSTE, HYPO, RZB, ONE, T-MOBILE
    245         *              INTEGER         MPAYTID : length = 11
    246         *              STRING          USER_FIELD
    247         *              STRING          ORDERDESC
    248         *              STRING          CUSTOMER
    249         *              STRING          CUSTOMER_EMAIL
    250         *              STRING          LANGUAGE : length = 2
    251         *              STRING          CUSTOMER_ID : length = 11
    252         *              STRING          PROFILE_STATUS : IGNORED, USED, ERROR, CREATED, UPDATED, DELETED
    253         *              STRING          FILTER_STATUS
    254         *              STRING          APPR_CODE
    255         *              STRING          SECRET
    256         *
    257         * @return void
    258         */
     288   
     289    public function setPageBgColor( $v ) {
     290        if ( null !== $v ) {
     291            $v = (string) $v;
     292        }
     293
     294        if ( $this->pageBgColor !== $v ) {
     295            $this->pageBgColor = $v;
     296        }
     297
     298        return $this;
     299    }
     300   
     301    public function setLogoStyle( $v ) {
     302        if ( null !== $v ) {
     303            $v = (string) $v;
     304        }
     305
     306        if ( $this->logoStyle !== $v ) {
     307            $this->logoStyle = $v;
     308        }
     309
     310        return $this;
     311    }
     312   
     313    public function setPageHeaderStyle( $v ) {
     314        if ( null !== $v ) {
     315            $v = (string) $v;
     316        }
     317
     318        if ( $this->pageHeaderStyle !== $v ) {
     319            $this->pageHeaderStyle = $v;
     320        }
     321
     322        return $this;
     323    }
     324   
     325    public function setPageCaptionStyle( $v ) {
     326        if ( null !== $v ) {
     327            $v = (string) $v;
     328        }
     329
     330        if ( $this->pageCaptionStyle !== $v ) {
     331            $this->pageCaptionStyle = $v;
     332        }
     333
     334        return $this;
     335    }
     336   
     337    public function setPageStyle( $v ) {
     338        if ( null !== $v ) {
     339            $v = (string) $v;
     340        }
     341
     342        if ( $this->pageStyle !== $v ) {
     343            $this->pageStyle = $v;
     344        }
     345
     346        return $this;
     347    }
     348   
     349    public function setInputFieldsStyle( $v ) {
     350        if ( null !== $v ) {
     351            $v = (string) $v;
     352        }
     353
     354        if ( $this->inputFieldsStyle !== $v ) {
     355            $this->inputFieldsStyle = $v;
     356        }
     357
     358        return $this;
     359    }
     360   
     361    public function setDropDownListsStyle( $v ) {
     362        if ( null !== $v ) {
     363            $v = (string) $v;
     364        }
     365
     366        if ( $this->dropDownListsStyle !== $v ) {
     367            $this->dropDownListsStyle = $v;
     368        }
     369
     370        return $this;
     371    }
     372
     373    public function setButtonsStyle( $v ) {
     374        if ( null !== $v ) {
     375            $v = (string) $v;
     376        }
     377
     378        if ( $this->buttonsStyle !== $v ) {
     379            $this->buttonsStyle = $v;
     380        }
     381
     382        return $this;
     383    }
     384
     385    public function setErrorsStyle( $v ) {
     386        if ( null !== $v ) {
     387            $v = (string) $v;
     388        }
     389
     390        if ( $this->errorsStyle !== $v ) {
     391            $this->errorsStyle = $v;
     392        }
     393
     394        return $this;
     395    }
     396   
     397    public function setErrorsHeaderStyle( $v ) {
     398        if ( null !== $v ) {
     399            $v = (string) $v;
     400        }
     401
     402        if ( $this->errorsHeaderStyle !== $v ) {
     403            $this->errorsHeaderStyle = $v;
     404        }
     405
     406        return $this;
     407    }
     408
     409    public function setSuccessTitleStyle( $v ) {
     410        if ( null !== $v ) {
     411            $v = (string) $v;
     412        }
     413
     414        if ( $this->successTitleStyle !== $v ) {
     415            $this->successTitleStyle = $v;
     416        }
     417
     418        return $this;
     419    }
     420
     421    public function setErrorTitleStyle( $v ) {
     422        if ( null !== $v ) {
     423            $v = (string) $v;
     424        }
     425
     426        if ( $this->errorTitleStyle !== $v ) {
     427            $this->errorTitleStyle = $v;
     428        }
     429
     430        return $this;
     431    }
     432   
     433    public function setFooterStyle( $v ) {
     434        if ( null !== $v ) {
     435            $v = (string) $v;
     436        }
     437
     438        if ( $this->footerStyle !== $v ) {
     439            $this->footerStyle = $v;
     440        }
     441
     442        return $this;
     443    }
     444
     445    /**
     446     * Create a transaction with the reuqired transaction's parameters - TID and PRICE
     447     *
     448     * @return Transaction
     449     */
    259450    public function createTransaction() {
    260451        global $wpdb;
    261452
     453        // transaction exists for payment on failed orders (order-pay url param)
     454        $transactionDb = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . GATEWAY_MPAY24_TABLE_NAME . " WHERE tid = %s", $this->getTid() ) );
     455       
     456        if ($transactionDb != null) {
     457            $update = array();
     458            $update['price'] = $this->getPrice() * 100;
     459            $update['updated_at'] = date( 'Y-m-d H:i:s', time() );
     460
     461            $wpdb->update(
     462                $wpdb->prefix . GATEWAY_MPAY24_TABLE_NAME ,
     463                $update,
     464                array( 'tid' => $this->getTid() )
     465            );
     466           
     467            $secret = $transactionDb->secret;
     468        } else {
     469            $wpdb->insert(
     470                $wpdb->prefix . GATEWAY_MPAY24_TABLE_NAME,
     471                array(
     472                    'tid'        => $this->getTid(),
     473                    'price'      => $this->getPrice() * 100,
     474                    'secret'     => $secret,
     475                    'created_at' => date( 'Y-m-d H:i:s', time() ),
     476                ),
     477                array( '%s', '%d', '%s', '%s' )
     478            );
     479           
     480            $secret = $this->createSecret( $this->getTid(), $this->getPrice(), 'EUR', time() );
     481        }
     482       
    262483        $transaction = new Transaction( $this->getTid() );
    263484
     
    265486        $transaction->PRICE = $this->getPrice();
    266487        $transaction->CURRENCY = 'EUR';
    267 
    268         $secret = $this->createSecret( $this->getTid(), $this->getPrice(), 'EUR', time() );
    269488        $transaction->SECRET = $secret;
    270 
    271         $wpdb->insert(
    272             $wpdb->prefix . GATEWAY_MPAY24_TABLE_NAME,
    273         array(
    274             'tid'        => $this->getTid(),
    275             'price'      => $this->getPrice() * 100,
    276             'secret'     => $secret,
    277             'created_at' => date( 'Y-m-d H:i:s', time() ),
    278             ),
    279             array( '%s', '%d', '%s', '%s' )
    280             );
    281 
     489       
    282490        return $transaction;
    283491    }
    284492
     493    /**
     494     * Actualize the transaction, writing all the transaction's parameters into result.txt
     495     *
     496     * @param string $tid               The transaction ID you want to update with the confirmation
     497     * @param array  $args              Arrguments with them the transaction is to be updated
     498     * @param bool   $shippingConfirmed TRUE if the shipping address is confirmed, FALSE - otherwise (in case of PayPal Express Checkout)
     499     */
    285500    public function updateTransaction( $tid, $args, $shippingConfirmed ) {
    286501        global $wpdb;
     
    313528    }
    314529
     530    /**
     531     * Give the transaction object back, after the required parameters (TID and PRICE) was set
     532     *
     533     * @param  string      $tid The transaction ID of the transaction you want get
     534     * @return Transaction
     535     */
    315536    public function getTransaction( $tid ) {
    316537        global $wpdb;
     
    326547
    327548    /**
    328         * create xml with the order information
    329         * required params are Tid and Price
    330         *
    331         * @param string $transaction - XML
    332         * @return string $mdxi - XML
    333         * @see MDXI.xsd and mPAY24 spezification page 78ff.
    334         */
    335     public function createMDXI( $transaction )
    336     {
     549     * Using the ORDER object, create a MDXI-XML
     550     * @param  Transaction $transaction The transaction you want to make a MDXI XML file for
     551     * @return ORDER
     552     * @see    MDXI.xsd and mPAY24 spezification page 78ff.
     553     */
     554    public function createMDXI( $transaction ) {
    337555        $mdxi = new ORDER();
    338556        $subTotal = 0.00;
     
    340558        $paymentMethods = $this->getPaymentMethods();
    341559        if ( 'OK' != $paymentMethods->getGeneralResponse()->getStatus() ) {
    342             throw new \Exception( 'EXTERNALSTATUS: ' . $paymentMethods->getExternalStatus() . ' RETURNCODE: ' . $paymentMethods->getGeneralResponse()->getReturnCode() );
     560            throw new \Exception( 'STATUS: ' . $paymentMethods->getGeneralResponse()->getStatus() . ' RETURNCODE: ' . $paymentMethods->getGeneralResponse()->getReturnCode() );
    343561        }
    344562
     
    347565        $mdxi->Order->TemplateSet = 'WEB';
    348566        $mdxi->Order->TemplateSet->setLanguage( $this->getLanguage() );
    349 
     567        $mdxi->Order->TemplateSet->setCSSName( 'MOBILE' ); // use responsive template
     568       
    350569        $mdxi->Order->PaymentTypes->setEnable( 'true' );
    351570
     
    384603         * example: $mdxi->Order->setStyle('font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;');
    385604         */
    386         //$mdxi->Order->setStyle('');
    387         //$mdxi->Order->setLogoStyle('');
    388         //$mdxi->Order->setPageHeaderStyle('');
    389         //$mdxi->Order->setPageCaptionStyle('');
    390         //$mdxi->Order->setPageStyle('');
    391         //$mdxi->Order->setInputFieldsStyle('');
    392         //$mdxi->Order->setDropDownListsStyle('');
    393         //$mdxi->Order->setButtonsStyle('');
    394         //$mdxi->Order->setErrorsStyle('');
    395         //$mdxi->Order->setErrorsHeaderStyle('');
    396         //$mdxi->Order->setSuccessTitleStyle('');
    397         //$mdxi->Order->setErrorTitleStyle('');
    398         //$mdxi->Order->setFooterStyle('');
    399        
     605        $mdxi->Order->setStyle( 'background-color: '.$this->getPageBgColor().';font-size: 12px;font-family: "Helvetica Neue",Helvetica,Arial,sans-serif' ); // body styling
     606        $mdxi->Order->setLogoStyle( $this->getLogoStyle() ); // styling of logo image
     607        $mdxi->Order->setPageHeaderStyle( $this->getPageHeaderStyle() );
     608        $mdxi->Order->setPageCaptionStyle( $this->getPageCaptionStyle() );
     609        $mdxi->Order->setPageStyle( $this->getPageStyle() );
     610        $mdxi->Order->setInputFieldsStyle( $this->getInputFieldsStyle() );
     611        $mdxi->Order->setDropDownListsStyle( $this->getDropDownListsStyle() );
     612        $mdxi->Order->setButtonsStyle( $this->getButtonsStyle() );
     613        $mdxi->Order->setErrorsStyle( $this->getErrorsStyle() );
     614        $mdxi->Order->setErrorsHeaderStyle( $this->getErrorsHeaderStyle() );
     615        $mdxi->Order->setSuccessTitleStyle( $this->getSuccessTitleStyle() );
     616        $mdxi->Order->setErrorTitleStyle( $this->getErrorTitleStyle() );
     617        $mdxi->Order->setFooterStyle( $this->getFooterStyle() );
     618
    400619        return $mdxi;
    401620    }
    402621
    403622    /**
    404         * create xml with the order information
    405         * required params are Tid and Price
    406         *
    407         * @param string $tid - XML
    408         * @return string $mdxi - XML
    409         * @see MPay24Shop.php and mPAY24 spezification page 63.
    410         */
     623     * NOT IMPLEMENTED
     624     *
     625     * Using the ORDER object, create a order-xml, which is needed for a transaction with profiles to be started
     626     * @param  string $tid The transaction ID of the transaction you want to make an order transaction XML file for
     627     * @return XML
     628     * @see    MPay24Shop.php and mPAY24 spezification page 63.
     629     */
    411630    public function createProfileOrder( $tid ) {}
    412631
     632    /**
     633     * NOT IMPLEMENTED
     634     *
     635     * Using the ORDER object, create a order-xml, which is needed for a transaction with PayPal Express Checkout to be started
     636     * @param  string $tid The transaction ID of the transaction you want to make an order transaction XML file for
     637     * @return XML
     638     */
    413639    public function createExpressCheckoutOrder( $tid ) {}
    414640
     641    /**
     642     * NOT IMPLEMENTED
     643     *
     644     * Using the ORDER object, create a order-xml, which is needed for a transaction with PayPal Express Checkout to be finished
     645     * @param  string $tid           The transaction ID of the transaction you want to make an order transaction XML file for
     646     * @param  string $shippingCosts The shipping costs amount for the transaction, provided by PayPal, after changing the shipping address
     647     * @param  string $amount        The new amount for the transaction, provided by PayPal, after changing the shipping address
     648     * @param  bool   $cancel        TRUE if the a cancelation is wanted after renewing the amounts and FALSE otherwise
     649     * @return XML
     650     */
    415651    public function createFinishExpressCheckoutOrder( $tid, $shippingCosts, $amount, $cancel ) {}
    416652
    417     public function write_log( $operation, $info_to_log )
    418     {
     653    /**
     654     * Write a mpay24 log into /plugins/woocommerce/logs/
     655     * @param string $operation   The operation, which is to log: GetPaymentMethods, Pay, PayWithProfile, Confirmation, UpdateTransactionStatus, ClearAmount, CreditAmount, CancelTransaction, etc.
     656     * @param string $info_to_log The information, which is to log: request, response, etc.
     657     */
     658    public function write_log( $operation, $info_to_log ) {
    419659        $result = $operation.$info_to_log;
    420660
     
    424664    }
    425665
     666    /**
     667     * It should build a hash from the transaction ID of your shop, the amount of the transaction,
     668     * the currency and the timeStamp of the transaction. The mPAY24 confirmation interface will be called
     669     * with this hash (parameter name 'token'), so you would be able to check whether the confirmation is
     670     * really coming from mPAY24 or not. The hash should be then saved in the transaction object, so that
     671     * every transaction has an unique secret token.
     672     * @param  string $tid       The transaction ID you want to make a secret key for
     673     * @param  string $amount    The amount, reserved for this transaction
     674     * @param  string $currency  The timeStamp at the moment the transaction is created
     675     * @param  string $timeStamp The timeStamp at the moment the transaction is created
     676     * @return string
     677     */
    426678    public function createSecret( $tid, $amount, $currency, $timeStamp ) {
    427679        return md5( $tid . $amount . $currency . $timeStamp . mt_rand() );
    428680    }
    429681
     682    /**
     683     * Get the secret (hashed) token for a transaction
     684     * @param  string $tid The transaction ID you want to get the secret key for
     685     * @return string
     686     */
    430687    public function getSecret( $tid ) {
    431688        $transaction = $this->getTransaction( $tid );
  • woocommerce-mpay24-gateway/trunk/gateway-mpay24.php

    r803586 r925767  
    33    Plugin Name: WooCommerce mPAY24 Gateway
    44    Plugin URI: http://www.woothemes.com/product-category/woocommerce-extensions/
    5     Description: Add mPAY24 Payment Gateway with credit card support to WooCommerce Plugin
    6     Version: 1.2
     5    Description: Add mPAY24 Payment Gateway to WooCommerce Plugin
     6    Version: 1.3
    77    Author: datenwerk innovationsagentur GmbH
    88    Author URI: http://www.datenwerk.at
    99    Requires at least: 3.5
    10     Tested up to: 3.7.1
     10    Tested up to: 3.9.1
    1111*/
    1212
     
    2222
    2323    if ( ! defined( 'GATEWAY_MPAY24_VERSION' ) ) {
    24         define( 'GATEWAY_MPAY24_VERSION', '1.2' );
     24        define( 'GATEWAY_MPAY24_VERSION', '1.3' );
    2525    }
    2626    if ( ! defined( 'GATEWAY_MPAY24_TABLE_NAME' ) ) {
     
    8484        ?>
    8585        <div id="message" class="updated woocommerce-message wc-connect">
    86             <div class="squeezer">
    87                 <h4><?php _e( '<strong>mPAY24 gateway is installed</strong> &#8211; Configure the setting to get started :)', 'wc-mpay24' ); ?></h4>
    88                 <p class="submit"><a href="<?php echo admin_url( 'admin.php?page=woocommerce_settings&tab=payment_gateways' ); ?>" class="button-primary"><?php _e( 'Payment Settings', 'wc-mpay24' ); ?></a></p>
    89             </div>
     86            <p><?php _e( '<strong>mPAY24 gateway is installed</strong> &#8211; Configure the setting to get started :)', 'wc-mpay24' ); ?></p>
     87            <p class="submit"><a href="<?php echo admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wc_gateway_mpay24' ); ?>" class="button-primary"><?php _e( 'Checkout', 'wc-mpay24' ); ?></a></p>
    9088        </div>
    9189        <?php
     
    118116            var $debug;
    119117            var $notify_url;
     118            var $page_bg_color = '#ffffff';
     119            var $logo_style = 'max-width: 100%';
     120            var $page_header_style = 'height: auto;line-height: 1.75em;color: #000000;margin-bottom: 10px';
     121            var $page_caption_style = 'background: transparent;color: #000000;border-radius: 0;margin: 0 5px 0 0;padding: 0;font-size: 1.167em;line-height: 1.5em;text-shadow: none';
     122            var $page_style = 'background: #ffffff';
     123            var $input_fields_style = '';
     124            var $drop_down_lists_style = '';
     125            var $buttons_style = '';
     126            var $errors_style = '';
     127            var $errors_header_style = '';
     128            var $success_title_style = '';
     129            var $error_title_style = '';
     130            var $footer_style = '';
    120131
    121132            /**
     
    129140                $this->has_fields         = false;
    130141                $this->method_title       = __( 'mPAY24', 'wc-mpay24' ); // backend title
    131                 $this->method_description = __( 'Credit card payment via mPAY24 payment page', 'wc-mpay24' ); // backend description
     142                $this->method_description = __( 'Online payment via mPAY24 payment page', 'wc-mpay24' ); // backend description
    132143                $this->notify_url         = str_replace( 'https:', 'http:', add_query_arg( 'wc-api', 'WC_Gateway_MPAY24', home_url( '/' ) ) );
    133144
     
    141152
    142153                // Get setting values
    143                 $this->title             = $this->settings['title']; // frontend title
    144                 $this->description       = $this->settings['description']; // frontend description
    145                 $this->thankyou_text     = $this->settings['thankyou_text'];
    146                 $this->email_text        = $this->settings['email_text'];
    147                 $this->payment_page_lang = $this->settings['payment_page_lang'];
    148                 $this->apiusertest       = $this->settings['apiusertest'];
    149                 $this->apipasstest       = $this->settings['apipasstest'];
    150                 $this->apiuserprod       = $this->settings['apiuserprod'];
    151                 $this->apipassprod       = $this->settings['apipassprod'];
    152                 $this->testmode          = $this->settings['testmode'];
    153                 $this->debug             = $this->settings['debug'];
     154                $this->title                 = $this->get_option( 'title' ); // frontend title
     155                $this->description           = $this->get_option( 'description' ); // frontend description
     156                $this->thankyou_text         = $this->get_option( 'thankyou_text' );
     157                $this->email_text            = $this->get_option( 'email_text' );
     158                                             
     159                $this->apiusertest           = $this->get_option( 'apiusertest' );
     160                $this->apipasstest           = $this->get_option( 'apipasstest' );
     161                $this->apiuserprod           = $this->get_option( 'apiuserprod' );
     162                $this->apipassprod           = $this->get_option( 'apipassprod' );
     163                $this->testmode              = $this->get_option( 'testmode' );
     164                $this->debug                 = $this->get_option( 'debug' );
     165                                             
     166                $this->payment_page_lang     = $this->get_option( 'payment_page_lang' );
     167                $this->page_bg_color         = $this->get_option( 'page_bg_color' );
     168                $this->logo_style            = $this->get_option( 'logo_style' );
     169                $this->page_header_style     = $this->get_option( 'page_header_style' );
     170                $this->page_caption_style    = $this->get_option( 'page_caption_style' );
     171                $this->page_style            = $this->get_option( 'page_style' );
     172                $this->input_fields_style    = $this->get_option( 'input_fields_style' );
     173                $this->drop_down_lists_style = $this->get_option( 'drop_down_lists_style' );
     174                $this->buttons_style         = $this->get_option( 'buttons_style' );
     175                $this->errors_style          = $this->get_option( 'errors_style' );
     176                $this->errors_header_style   = $this->get_option( 'errors_header_style' );
     177                $this->success_title_style   = $this->get_option( 'success_title_style' );
     178                $this->error_title_style     = $this->get_option( 'error_title_style' );
     179                $this->footer_style          = $this->get_option( 'footer_style' );
    154180
    155181                // Logging
    156182                if ( 'yes' == $this->debug ) {
    157                     $this->log = $woocommerce->logger();
     183                    $this->log = new WC_Logger();
    158184                }
    159185
     
    165191                // Payment listener/API hook
    166192                add_action( 'woocommerce_api_wc_gateway_mpay24', array( $this, 'check_mpay24_response' ) ); // mPAY24 transaction confirmation
    167                 add_action( 'valid-mpay24-standard-request', array( $this, 'successful_request' ) ); // order status update
     193                add_action( 'valid_mpay24_standard_request', array( $this, 'successful_request' ) ); // order status update
    168194            }
    169195
     
    180206            public function init_form_fields() {
    181207                $this->form_fields = array(
     208                    'woocommerce_settings' => array(
     209                        'title'       => __( 'Woocommerce Settings', 'wc-mpay24' ),
     210                        'type'        => 'title',
     211                        'description' => '',
     212                    ),
    182213                    'enabled' => array(
    183214                        'title'       => __( 'Enable/Disable', 'wc-mpay24' ),
     
    191222                        'type'        => 'text',
    192223                        'description' => __( 'This controls the title which the user sees during checkout.', 'wc-mpay24' ),
     224                        'desc_tip'    => true,
    193225                        'default'     => __( 'Credit card', 'wc-mpay24' )
    194226                    ),
     
    197229                        'type'        => 'textarea',
    198230                        'description' => __( 'This controls the description which the user sees during checkout.', 'wc-mpay24' ),
     231                        'desc_tip'    => true,
    199232                        'default'     => __( 'Pay with your credit card via mPAY24.', 'wc-mpay24' )
    200233                    ),
     
    202235                        'title'       => __( 'Thank you page text', 'wc-mpay24' ),
    203236                        'type'        => 'textarea',
    204                         'description' => __( 'This controls the text which the user sees on the order thank you page above order details.', 'wc-mpay24' )
     237                        'description' => __( 'This controls the text which the user sees on the order thank you page above order details.', 'wc-mpay24' ),
     238                        'desc_tip'    => true
    205239                    ),
    206240                    'email_text' => array(
    207241                        'title'       => __( 'Customer email text', 'wc-mpay24' ),
    208242                        'type'        => 'textarea',
    209                         'description' => __( 'This controls the text which the user sees in order confirmation email below order table.', 'wc-mpay24' )
     243                        'description' => __( 'This controls the text which the user sees in order confirmation email below order table.', 'wc-mpay24' ),
     244                        'desc_tip'    => true
     245                    ),
     246                    'mpay24_settings' => array(
     247                        'title'       => __( 'mPAY24 Settings', 'wc-mpay24' ),
     248                        'type'        => 'title',
     249                        'description' => '',
     250                    ),
     251                    'apiusertest' => array(
     252                        'title'       => __( 'Username TEST', 'wc-mpay24' ),
     253                        'type'        => 'text',
     254                        'description' => __( 'This is the SOAP API username (without leading u) for test environment.', 'wc-mpay24' ),
     255                        'desc_tip'    => true,
     256                        'default'     => ''
     257                    ),
     258                    'apipasstest' => array(
     259                        'title'       => __( 'Password TEST', 'wc-mpay24' ),
     260                        'type'        => 'password',
     261                        'description' => __( 'This is the SOAP API password for test environment.', 'wc-mpay24' ),
     262                        'desc_tip'    => true,
     263                        'default'     => ''
     264                    ),
     265                    'apiuserprod' => array(
     266                        'title'       => __( 'Username PROD', 'wc-mpay24' ),
     267                        'type'        => 'text',
     268                        'description' => __( 'This is the SOAP API username (without leading u) for prod environment.', 'wc-mpay24' ),
     269                        'desc_tip'    => true,
     270                        'default'     => ''
     271                    ),
     272                    'apipassprod' => array(
     273                        'title'       => __( 'Password PROD', 'wc-mpay24' ),
     274                        'type'        => 'password',
     275                        'description' => __( 'This is the SOAP API password for prod environment.', 'wc-mpay24' ),
     276                        'desc_tip'    => true,
     277                        'default'     => ''
     278                    ),
     279                    'testmode' => array(
     280                        'title'       => __( 'Test Mode', 'wc-mpay24' ),
     281                        'label'       => __( 'Enable Test Mode', 'wc-mpay24' ),
     282                        'type'        => 'checkbox',
     283                        'description' => __( 'Place the payment gateway in test mode.', 'wc-mpay24' ),
     284                        'desc_tip'    => true,
     285                        'default'     => 'yes'
     286                    ),
     287                    'debug' => array(
     288                        'title'       => __( 'Debug Log', 'wc-mpay24' ),
     289                        'label'       => __( 'Enable logging', 'wc-mpay24' ),
     290                        'type'        => 'checkbox',
     291                        'description' => __( 'Log mPAY24 events inside <code>/plugins/woocommerce/logs/</code>', 'wc-mpay24' ),
     292                        'default'     => 'no'
     293                       
     294                    ),
     295                    'styling' => array(
     296                        'title'       => __( 'mPAY24 Payment Page Styling', 'wc-mpay24' ),
     297                        'type'        => 'title',
     298                        'description' => 'Tipp for CSS rules: no semicolon after last rule',
    210299                    ),
    211300                    'payment_page_lang' => array(
    212                         'title'       => __( 'mPAY24 Payment page Language', 'wc-mpay24' ),
     301                        'title'       => __( 'Language', 'wc-mpay24' ),
    213302                        'type'        => 'select',
    214303                        'options'     => array(
     
    234323                            'TR' => __( 'Turkish', 'wc-mpay24' )
    235324                        ), // see mPAY24 specification Appendix for supported languages
    236                         'description' => __( 'This controls in which langage the payment page is shown.', 'wc-mpay24' ),
     325                        'description' => __( 'This controls in which language the payment page is shown.', 'wc-mpay24' ),
     326                        'desc_tip'    => true,
    237327                        'default'     => 'DE'
    238328                    ),
    239                     'apiusertest' => array(
    240                         'title'       => __( 'Username TEST', 'wc-mpay24' ),
     329                    'page_bg_color' => array(
     330                        'title'       => __( 'Page Background Color', 'wc-mpay24' ),
     331                        'description' => __( 'Background color of the payment page. Default', 'wc-mpay24' ).' <code>#ffffff</code>.',
    241332                        'type'        => 'text',
    242                         'description' => __( 'This is the SOAP API username (without leading u) for test environment.', 'wc-mpay24' ),
    243                         'default'     => ''
    244                     ),
    245                     'apipasstest' => array(
    246                         'title'       => __( 'Password TEST', 'wc-mpay24' ),
    247                         'type'        => 'password',
    248                         'description' => __( 'This is the SOAP API password for test environment.', 'wc-mpay24' ),
    249                         'default'     => ''
    250                     ),
    251                     'apiuserprod' => array(
    252                         'title'       => __( 'Username PROD', 'wc-mpay24' ),
    253                         'type'        => 'text',
    254                         'description' => __( 'This is the SOAP API username (without leading u) for prod environment.', 'wc-mpay24' ),
    255                         'default'     => ''
    256                     ),
    257                     'apipassprod' => array(
    258                         'title'       => __( 'Password PROD', 'wc-mpay24' ),
    259                         'type'        => 'password',
    260                         'description' => __( 'This is the SOAP API password for prod environment.', 'wc-mpay24' ),
    261                         'default'     => ''
    262                     ),
    263                     'testmode' => array(
    264                         'title'       => __( 'mPAY24 Test Mode', 'wc-mpay24' ),
    265                         'label'       => __( 'Enable Test Mode', 'wc-mpay24' ),
    266                         'type'        => 'checkbox',
    267                         'description' => __( 'Place the payment gateway in development mode.', 'wc-mpay24' ),
    268                         'default'     => 'yes'
    269                     ),
    270                     'debug' => array(
    271                         'title'       => __( 'Debug Log', 'wc-mpay24' ),
    272                         'type'        => 'checkbox',
    273                         'label'       => __( 'Enable logging', 'wc-mpay24' ),
    274                         'default'     => 'no',
    275                         'description' => __( 'Log mPAY24 events inside <code>woocommerce/logs/mpay24.txt</code>', 'wc-mpay24' )
     333                        'class'       => 'colorpick',
     334                        'css'         => 'width:6em;',
     335                        'default'     => '#ffffff'
     336                    ),
     337                    'logo_style' => array(
     338                        'title'       => __( 'Logo Styling', 'wc-mpay24' ),
     339                        'description' => __( 'CSS rules for payment page logo image. Default', 'wc-mpay24' ).' <code>max-width: 100%</code>.',
     340                        'type'        => 'textarea',
     341                        'default'     => 'max-width: 100%'
     342                    ),
     343                    'page_header_style' => array(
     344                        'title'       => __( 'Page Header Styling', 'wc-mpay24' ),
     345                        'description' => __( 'CSS rules for payment page header. Default', 'wc-mpay24' ).' <code>height: auto;line-height: 1.75em;color: #000000;margin-bottom: 10px</code>.',
     346                        'type'        => 'textarea',
     347                        'default'     => 'height: auto;line-height: 1.75em;color: #000000;margin-bottom: 10px'
     348                    ),
     349                    'page_caption_style' => array(
     350                        'title'       => __( 'Page Caption Styling', 'wc-mpay24' ),
     351                        'description' => __( 'CSS rules for payment page caption. Default', 'wc-mpay24' ).' <code>background: transparent;color: #000000;border-radius: 0;margin: 0 5px 0 0;padding: 0;font-size: 1.167em;line-height: 1.357em;text-shadow: none</code>.',
     352                        'type'        => 'textarea',
     353                        'default'     => 'background: transparent;color: #000000;border-radius: 0;margin: 0 5px 0 0;padding: 0;font-size: 1.167em;line-height: 1.357em;text-shadow: none'
     354                    ),
     355                    'page_style' => array(
     356                        'title'       => __( 'Page Styling', 'wc-mpay24' ),
     357                        'description' => __( 'CSS rules for payment page box with inputs. Default', 'wc-mpay24' ).' <code>background: #ffffff</code>.',
     358                        'type'        => 'textarea',
     359                        'default'     => 'background: #ffffff'
     360                    ),
     361                    'input_fields_style' => array(
     362                        'title'       => __( 'Input Fields Styling', 'wc-mpay24' ),
     363                        'description' => __( 'CSS rules for payment page input fields.', 'wc-mpay24' ),
     364                        'type'        => 'textarea',
     365                        'default'     => ''
     366                    ),
     367                    'drop_down_lists_style' => array(
     368                        'title'       => __( 'Drop Down Lists Styling', 'wc-mpay24' ),
     369                        'description' => __( 'CSS rules for payment page drop down lists.', 'wc-mpay24' ),
     370                        'type'        => 'textarea',
     371                        'default'     => ''
     372                    ),
     373                    'buttons_style' => array(
     374                        'title'       => __( 'Buttons Styling', 'wc-mpay24' ),
     375                        'description' => __( 'CSS rules for payment page buttons.', 'wc-mpay24' ),
     376                        'type'        => 'textarea',
     377                        'default'     => ''
     378                    ),
     379                    'errors_style' => array(
     380                        'title'       => __( 'Errors Styling', 'wc-mpay24' ),
     381                        'description' => __( 'CSS rules for payment page error messages.', 'wc-mpay24' ),
     382                        'type'        => 'textarea',
     383                        'default'     => ''
     384                    ),
     385                    'errors_header_style' => array(
     386                        'title'       => __( 'Errors Header Styling', 'wc-mpay24' ),
     387                        'description' => __( 'CSS rules for payment page error heading.', 'wc-mpay24' ),
     388                        'type'        => 'textarea',
     389                        'default'     => ''
     390                    ),
     391                    'success_title_style' => array(
     392                        'title'       => __( 'Success Title Styling', 'wc-mpay24' ),
     393                        'description' => __( 'CSS rules for payment success page title area.', 'wc-mpay24' ),
     394                        'type'        => 'textarea',
     395                        'default'     => ''
     396                    ),
     397                    'error_title_style' => array(
     398                        'title'       => __( 'Error Title Styling', 'wc-mpay24' ),
     399                        'description' => __( 'CSS rules for payment error page title area.', 'wc-mpay24' ),
     400                        'type'        => 'textarea',
     401                        'default'     => ''
     402                    ),
     403                    'footer_style' => array(
     404                        'title'       => __( 'Footer Styling', 'wc-mpay24' ),
     405                        'description' => __( 'CSS rules for payment page footer area.', 'wc-mpay24' ),
     406                        'type'        => 'textarea',
     407                        'default'     => ''
    276408                    )
    277409                );
     
    288420                ?>
    289421                <h3><?php _e( 'mPAY24', 'wc-mpay24' ); ?></h3>
    290                 <p><?php _e( 'Credit card payment via mPAY24 payment page', 'wc-mpay24' ); ?></p>
     422                <p><?php _e( 'Online payment via mPAY24 payment page', 'wc-mpay24' ); ?></p>
    291423                <table class="form-table">
    292424                <?php
     
    332464                $shop->setConfirmUrl( $this->notify_url );
    333465
     466                $shop->setPageBgColor( $this->page_bg_color );
     467                $shop->setLogoStyle( $this->logo_style );
     468                $shop->setPageHeaderStyle( $this->page_header_style );
     469                $shop->setPageCaptionStyle( $this->page_caption_style );
     470                $shop->setPageStyle( $this->page_style );
     471                $shop->setInputFieldsStyle( $this->input_fields_style );
     472                $shop->setDropDownListsStyle( $this->drop_down_lists_style );
     473                $shop->setButtonsStyle( $this->buttons_style );
     474                $shop->setErrorsStyle( $this->errors_style );
     475                $shop->setErrorsHeaderStyle( $this->errors_header_style );
     476                $shop->setSuccessTitleStyle( $this->success_title_style );
     477                $shop->setErrorTitleStyle( $this->error_title_style );
     478                $shop->setFooterStyle( $this->footer_style );
     479
    334480                $result = $shop->pay();
    335481
    336                 if ( $result->getGeneralResponse()->getStatus() != "OK" ) {
    337                     echo "Error: " . $result->getExternalStatus();
    338                     echo "Return Code: " . $result->getGeneralResponse()->getReturnCode();
     482                if ( $result->getGeneralResponse()->getStatus() != 'OK' ) {
     483                    echo 'Return Code: ' . $result->getGeneralResponse()->getReturnCode();
    339484                }
    340485
     
    344489                    'redirect' => $result->getLocation()
    345490                );
    346 
    347                 //// Remove cart
    348                 //$woocommerce->cart->empty_cart();
    349                 //
    350                 //// Empty awaiting payment session
    351                 //unset( $_SESSION['order_awaiting_payment'] );
    352                 //
    353                 //// Return thankyou redirect
    354                 //return array(
    355                 //  'result'    => 'success',
    356                 //  'redirect'  => add_query_arg( 'key', $order->order_key, add_query_arg( 'order', $order_id, get_permalink( get_option( 'woocommerce_thanks_page_id' ) ) ) )
    357                 //);
    358491            }
    359492
     
    420553
    421554                $testmode = ( 'yes' == $this->testmode ) ? true : false;
    422                 $user     = ( 'yes' == $this->testmode ) ? $this->apiusertest : $this->apiuserprod;
    423                 $pass     = ( 'yes' == $this->testmode ) ? $this->apipasstest : $this->apipassprod;
     555                $user     = ( 'yes' == $this->testmode ) ? $this->apiusertest : $this->apiuserprod;
     556                $pass     = ( 'yes' == $this->testmode ) ? $this->apipasstest : $this->apipassprod;
    424557
    425558                $shop = new WC_MPAY24_Shop( $user, $pass, $testmode );
     
    435568             * Confirm mPAY24 transaction and write status in plugin's database table
    436569             * called by 'woocommerce_api_wc_gateway_mpay24' action
    437              * call 'valid-mpay24-standard-request' action to process order
     570             * call 'valid_mpay24_standard_request' action to process order
    438571             *
    439572             * @access public
     
    444577                if ( ! empty( $_GET ) && $this->check_ipn_request_is_valid() ) {
    445578                    header( 'HTTP/1.1 200 OK' );
    446                     do_action( "valid-mpay24-standard-request", $_GET );
     579                    do_action( 'valid_mpay24_standard_request', $_GET );
    447580                } else {
    448                     wp_die( "mPAY24 IPN Request Failure" );
     581                    wc_add_notice( __( 'mPAY24 IPN Request Failure', 'wc-mpay24' ), 'error' );
     582                    wp_die( 'mPAY24 IPN Request Failure' );
    449583                }
    450584            }
     
    452586            /**
    453587             * Lock up transaction status from database and update order status
    454              * called by 'valid-mpay24-standard-request' action
     588             * called by 'valid_mpay24_standard_request' action
    455589             *
    456590             * @param array $posted - request parameters
     
    502636                            // Order failed
    503637                            $order->update_status( 'failed', sprintf( __( 'Payment %s via mPAY24.', 'wc-mpay24' ), $tstatus ) );
     638                            wc_add_notice( __( 'Payment failed via mPAY24.', 'wc-mpay24' ), 'error' );
    504639                        break;
    505640                        case 'credited':
  • woocommerce-mpay24-gateway/trunk/languages/wc-mpay24-de_DE.po

    r803596 r925767  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: WooCommerce mPAY24 Gateway v1.0\n"
     3"Project-Id-Version: WooCommerce mPAY24 Gateway v1.3\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2013-11-13 09:09+0100\n"
    6 "PO-Revision-Date: 2013-11-13 09:11+0100\n"
     5"POT-Creation-Date: 2014-06-03 16:01+0100\n"
     6"PO-Revision-Date: 2014-06-03 16:13+0100\n"
    77"Last-Translator: Melanie Reichel <[email protected]>\n"
    88"Language-Team: datenwerk innovationsagentur GmbH <wordpressdev@datenwerk."
    99"at>\n"
     10"Language: de_DE\n"
    1011"MIME-Version: 1.0\n"
    1112"Content-Type: text/plain; charset=UTF-8\n"
     
    1718"X-Poedit-Basepath: .\n"
    1819"X-Textdomain-Support: yes\n"
    19 "X-Generator: Poedit 1.5.7\n"
     20"X-Generator: Poedit 1.6.5\n"
    2021"X-Poedit-SearchPath-0: .\n"
    21 
    22 # @ wc-mpay24
    23 #: gateway-mpay24.php:87
     22"X-Poedit-SearchPath-1: ..\n"
     23
     24# @ wc-mpay24
     25#: ../gateway-mpay24.php:86
    2426msgid ""
    2527"<strong>mPAY24 gateway is installed</strong> &#8211; Configure the setting "
     
    2931"die Einstellungen um zu starten :)"
    3032
    31 # @ wc-mpay24
    32 #: gateway-mpay24.php:88
    33 msgid "Payment Settings"
    34 msgstr "Zahlungsweisen"
    35 
    36 # @ wc-mpay24
    37 #: gateway-mpay24.php:130 gateway-mpay24.php:289
     33#: ../gateway-mpay24.php:87
     34msgid "Checkout"
     35msgstr "Kasse"
     36
     37# @ wc-mpay24
     38#: ../gateway-mpay24.php:141 ../gateway-mpay24.php:421
    3839msgid "mPAY24"
    3940msgstr "mPAY24"
    4041
    4142# @ wc-mpay24
    42 #: gateway-mpay24.php:131 gateway-mpay24.php:290
    43 msgid "Credit card payment via mPAY24 payment page"
    44 msgstr "Zahlung per Kreditkarte über das mPAY24 Bezahlfenster"
    45 
    46 # @ wc-mpay24
    47 #: gateway-mpay24.php:183
     43#: ../gateway-mpay24.php:142 ../gateway-mpay24.php:422
     44msgid "Online payment via mPAY24 payment page"
     45msgstr "Online Zahlung über das mPAY24 Bezahlfenster"
     46
     47#: ../gateway-mpay24.php:209
     48msgid "Woocommerce Settings"
     49msgstr "Woocommerce Einstellungen"
     50
     51# @ wc-mpay24
     52#: ../gateway-mpay24.php:214
    4853msgid "Enable/Disable"
    4954msgstr "Aktivieren/ Deaktivieren"
    5055
    5156# @ wc-mpay24
    52 #: gateway-mpay24.php:184
     57#: ../gateway-mpay24.php:215
    5358msgid "Enable mPAY24"
    5459msgstr "mPAY24 aktivieren"
    5560
    5661# @ wc-mpay24
    57 #: gateway-mpay24.php:190
     62#: ../gateway-mpay24.php:221
    5863msgid "Title"
    5964msgstr "Titel"
    6065
    6166# @ wc-mpay24
    62 #: gateway-mpay24.php:192
     67#: ../gateway-mpay24.php:223
    6368msgid "This controls the title which the user sees during checkout."
    6469msgstr ""
     
    6772
    6873# @ wc-mpay24
    69 #: gateway-mpay24.php:193
     74#: ../gateway-mpay24.php:225
    7075msgid "Credit card"
    7176msgstr "Kreditkarte"
    7277
    7378# @ wc-mpay24
    74 #: gateway-mpay24.php:196
     79#: ../gateway-mpay24.php:228
    7580msgid "Description"
    7681msgstr "Beschreibung"
    7782
    7883# @ wc-mpay24
    79 #: gateway-mpay24.php:198
     84#: ../gateway-mpay24.php:230
    8085msgid "This controls the description which the user sees during checkout."
    8186msgstr "Dies aktiviert die Beschreibung, die der Kunde an der Kasse sieht."
    8287
    8388# @ wc-mpay24
    84 #: gateway-mpay24.php:199
     89#: ../gateway-mpay24.php:232
    8590msgid "Pay with your credit card via mPAY24."
    8691msgstr "Bezahlen Sie mit Ihrer Kreditkarte über mPAY24."
    8792
    8893# @ wc-mpay24
    89 #: gateway-mpay24.php:202
     94#: ../gateway-mpay24.php:235
    9095msgid "Thank you page text"
    9196msgstr "Text für Danke-Seite"
    9297
    9398# @ wc-mpay24
    94 #: gateway-mpay24.php:204
     99#: ../gateway-mpay24.php:237
    95100msgid ""
    96101"This controls the text which the user sees on the order thank you page above "
     
    101106
    102107# @ wc-mpay24
    103 #: gateway-mpay24.php:207
     108#: ../gateway-mpay24.php:241
    104109msgid "Customer email text"
    105110msgstr "Text für Kunden Bestätigungsmail"
    106111
    107112# @ wc-mpay24
    108 #: gateway-mpay24.php:209
     113#: ../gateway-mpay24.php:243
    109114msgid ""
    110115"This controls the text which the user sees in order confirmation email below "
     
    114119"Bestellungen sieht."
    115120
    116 # @ wc-mpay24
    117 #: gateway-mpay24.php:212
    118 msgid "mPAY24 Payment page Language"
    119 msgstr "Sprache des mPAY24 Bezahlfensters"
    120 
    121 # @ wc-mpay24
    122 #: gateway-mpay24.php:215
     121#: ../gateway-mpay24.php:247
     122msgid "mPAY24 Settings"
     123msgstr "mPAY24 Einstellungen"
     124
     125# @ wc-mpay24
     126#: ../gateway-mpay24.php:252
     127msgid "Username TEST"
     128msgstr "Benutzername TEST"
     129
     130# @ wc-mpay24
     131#: ../gateway-mpay24.php:254
     132msgid "This is the SOAP API username (without leading u) for test environment."
     133msgstr ""
     134"Dies ist der SOAP API Benutzername (ohne führendes u) für die Testumgebung."
     135
     136# @ wc-mpay24
     137#: ../gateway-mpay24.php:259
     138msgid "Password TEST"
     139msgstr "Passwort TEST"
     140
     141# @ wc-mpay24
     142#: ../gateway-mpay24.php:261
     143msgid "This is the SOAP API password for test environment."
     144msgstr "Dies ist das SOAP API Passwort für die Testumgebung."
     145
     146# @ wc-mpay24
     147#: ../gateway-mpay24.php:266
     148msgid "Username PROD"
     149msgstr "Benutzername PROD"
     150
     151# @ wc-mpay24
     152#: ../gateway-mpay24.php:268
     153msgid "This is the SOAP API username (without leading u) for prod environment."
     154msgstr ""
     155"Dies ist der SOAP API Benutzername (ohne führendes u) für die "
     156"Produktivumgebung."
     157
     158# @ wc-mpay24
     159#: ../gateway-mpay24.php:273
     160msgid "Password PROD"
     161msgstr "Passwort PROD"
     162
     163# @ wc-mpay24
     164#: ../gateway-mpay24.php:275
     165msgid "This is the SOAP API password for prod environment."
     166msgstr "Dies ist das SOAP API Passwort für die Produktivumgebung."
     167
     168# @ wc-mpay24
     169#: ../gateway-mpay24.php:280
     170msgid "Test Mode"
     171msgstr "Testmodus"
     172
     173# @ wc-mpay24
     174#: ../gateway-mpay24.php:281
     175msgid "Enable Test Mode"
     176msgstr "Entwicklungsmodus aktivieren"
     177
     178# @ wc-mpay24
     179#: ../gateway-mpay24.php:283
     180msgid "Place the payment gateway in test mode."
     181msgstr "Versetzt das Bezahlungssystem in den Testmodus."
     182
     183# @ wc-mpay24
     184#: ../gateway-mpay24.php:288
     185msgid "Debug Log"
     186msgstr "Debug-Protokoll"
     187
     188# @ wc-mpay24
     189#: ../gateway-mpay24.php:289
     190msgid "Enable logging"
     191msgstr "Protokollierung aktivieren"
     192
     193# @ wc-mpay24
     194#: ../gateway-mpay24.php:291
     195msgid "Log mPAY24 events inside <code>/plugins/woocommerce/logs/</code>"
     196msgstr ""
     197"Protokolliert mPAY24 Ereignisse nach <code>/plugins/woocommerce/logs/</code>"
     198
     199# @ wc-mpay24
     200#: ../gateway-mpay24.php:296
     201msgid "mPAY24 Payment Page Styling"
     202msgstr "mPAY24 Bezahlfenster Styling"
     203
     204#: ../gateway-mpay24.php:301
     205msgid "Language"
     206msgstr "Sprache"
     207
     208# @ wc-mpay24
     209#: ../gateway-mpay24.php:304
    123210msgid "Bulgarian"
    124211msgstr "Bulgarisch"
    125212
    126 #: gateway-mpay24.php:216
     213#: ../gateway-mpay24.php:305
    127214msgid "Chinese"
    128215msgstr "Chinesisch"
    129216
    130 #: gateway-mpay24.php:217
     217#: ../gateway-mpay24.php:306
    131218msgid "Croatian"
    132219msgstr "Kroatisch"
    133220
    134221# @ wc-mpay24
    135 #: gateway-mpay24.php:218
     222#: ../gateway-mpay24.php:307
    136223msgid "Czech"
    137224msgstr "Tschechisch"
    138225
    139226# @ wc-mpay24
    140 #: gateway-mpay24.php:219
     227#: ../gateway-mpay24.php:308
    141228msgid "Dutch"
    142229msgstr "Niederländisch"
    143230
    144231# @ wc-mpay24
    145 #: gateway-mpay24.php:220
     232#: ../gateway-mpay24.php:309
    146233msgid "English"
    147234msgstr "Englisch"
    148235
    149236# @ wc-mpay24
    150 #: gateway-mpay24.php:221
     237#: ../gateway-mpay24.php:310
    151238msgid "French"
    152239msgstr "Französisch"
    153240
    154241# @ wc-mpay24
    155 #: gateway-mpay24.php:222
     242#: ../gateway-mpay24.php:311
    156243msgid "German"
    157244msgstr "Deutsch"
    158245
    159246# @ wc-mpay24
    160 #: gateway-mpay24.php:223
     247#: ../gateway-mpay24.php:312
    161248msgid "Hungarian"
    162249msgstr "Ungarisch"
    163250
    164 #: gateway-mpay24.php:224
     251#: ../gateway-mpay24.php:313
    165252msgid "Italian"
    166253msgstr "Italienisch"
    167254
    168 #: gateway-mpay24.php:225
     255#: ../gateway-mpay24.php:314
    169256msgid "Japanese"
    170257msgstr "Japanisch"
    171258
    172259# @ wc-mpay24
    173 #: gateway-mpay24.php:226
     260#: ../gateway-mpay24.php:315
    174261msgid "Polish"
    175262msgstr "Polnisch"
    176263
    177 #: gateway-mpay24.php:227
     264#: ../gateway-mpay24.php:316
    178265msgid "Portuguese"
    179266msgstr "Portugiesisch"
    180267
    181 #: gateway-mpay24.php:228
     268#: ../gateway-mpay24.php:317
    182269msgid "Romanian"
    183270msgstr "Rumänisch"
    184271
    185 #: gateway-mpay24.php:229
     272#: ../gateway-mpay24.php:318
    186273msgid "Russian"
    187274msgstr "Russisch"
    188275
    189 #: gateway-mpay24.php:230
     276#: ../gateway-mpay24.php:319
    190277msgid "Serbian"
    191278msgstr "Serbisch"
    192279
    193 #: gateway-mpay24.php:231
     280#: ../gateway-mpay24.php:320
    194281msgid "Slovak"
    195282msgstr "Slowakisch"
    196283
    197 #: gateway-mpay24.php:232
     284#: ../gateway-mpay24.php:321
    198285msgid "Slovenian"
    199286msgstr "Slowenisch"
    200287
    201288# @ wc-mpay24
    202 #: gateway-mpay24.php:233
     289#: ../gateway-mpay24.php:322
    203290msgid "Spanish"
    204291msgstr "Spanisch"
    205292
    206 #: gateway-mpay24.php:234
     293#: ../gateway-mpay24.php:323
    207294msgid "Turkish"
    208295msgstr "Türkisch"
    209296
    210297# @ wc-mpay24
    211 #: gateway-mpay24.php:236
    212 msgid "This controls in which langage the payment page is shown."
     298#: ../gateway-mpay24.php:325
     299msgid "This controls in which language the payment page is shown."
    213300msgstr ""
    214301"Dies aktiviert in welcher Sprache das mPAY24 Bezahlfenster angezeigt wird."
    215302
    216 # @ wc-mpay24
    217 #: gateway-mpay24.php:240
    218 msgid "Username TEST"
    219 msgstr "Benutzername TEST"
    220 
    221 # @ wc-mpay24
    222 #: gateway-mpay24.php:242
    223 msgid "This is the SOAP API username (without leading u) for test environment."
    224 msgstr ""
    225 "Dies ist der SOAP API Benutzername (ohne führendes u) für die Testumgebung."
    226 
    227 # @ wc-mpay24
    228 #: gateway-mpay24.php:246
    229 msgid "Password TEST"
    230 msgstr "Passwort TEST"
    231 
    232 # @ wc-mpay24
    233 #: gateway-mpay24.php:248
    234 msgid "This is the SOAP API password for test environment."
    235 msgstr "Dies ist das SOAP API Passwort für die Testumgebung."
    236 
    237 # @ wc-mpay24
    238 #: gateway-mpay24.php:252
    239 msgid "Username PROD"
    240 msgstr "Benutzername PROD"
    241 
    242 # @ wc-mpay24
    243 #: gateway-mpay24.php:254
    244 msgid "This is the SOAP API username (without leading u) for prod environment."
    245 msgstr ""
    246 "Dies ist der SOAP API Benutzername (ohne führendes u) für die "
    247 "Produktivumgebung."
    248 
    249 # @ wc-mpay24
    250 #: gateway-mpay24.php:258
    251 msgid "Password PROD"
    252 msgstr "Passwort PROD"
    253 
    254 # @ wc-mpay24
    255 #: gateway-mpay24.php:260
    256 msgid "This is the SOAP API password for prod environment."
    257 msgstr "Dies ist das SOAP API Passwort für die Produktivumgebung."
    258 
    259 # @ wc-mpay24
    260 #: gateway-mpay24.php:264
    261 msgid "mPAY24 Test Mode"
    262 msgstr "mPAY24 Entwicklungsmodus"
    263 
    264 # @ wc-mpay24
    265 #: gateway-mpay24.php:265
    266 msgid "Enable Test Mode"
    267 msgstr "Entwicklungsmodus aktivieren"
    268 
    269 # @ wc-mpay24
    270 #: gateway-mpay24.php:267
    271 msgid "Place the payment gateway in development mode."
    272 msgstr "Versetzt das Bezahlungssystem in Entwicklungsmodus."
    273 
    274 # @ wc-mpay24
    275 #: gateway-mpay24.php:271
    276 msgid "Debug Log"
    277 msgstr "Debug-Protokoll"
    278 
    279 # @ wc-mpay24
    280 #: gateway-mpay24.php:273
    281 msgid "Enable logging"
    282 msgstr "Protokollierung aktivieren"
    283 
    284 # @ wc-mpay24
    285 #: gateway-mpay24.php:275
    286 msgid "Log mPAY24 events inside <code>woocommerce/logs/mpay24.txt</code>"
    287 msgstr ""
    288 "Protokolliert mPAY24 Ereignisse nach <code>woocommerce/logs/mpay24.txt</code>"
    289 
    290 # @ wc-mpay24
    291 #: gateway-mpay24.php:370
     303#: ../gateway-mpay24.php:330
     304msgid "Page Background Color"
     305msgstr "Seitenhintergrundfarbe"
     306
     307#: ../gateway-mpay24.php:331
     308msgid "Background color of the payment page. Default"
     309msgstr "Hintergrundfarbe des Bezahlfensters. Standard"
     310
     311#: ../gateway-mpay24.php:338
     312msgid "Logo Styling"
     313msgstr "Logo Styling"
     314
     315#: ../gateway-mpay24.php:339
     316msgid "CSS rules for payment page logo image. Default"
     317msgstr "CSS Regeln für das Logo im Bezahlfenster. Standard"
     318
     319#: ../gateway-mpay24.php:344
     320msgid "Page Header Styling"
     321msgstr "Seitenüberschrift Styling"
     322
     323#: ../gateway-mpay24.php:345
     324msgid "CSS rules for payment page header. Default"
     325msgstr "CSS Regeln für die Seitenüberschrift des Bezahlfensters. Standard"
     326
     327#: ../gateway-mpay24.php:350
     328msgid "Page Caption Styling"
     329msgstr "Seitentitel Styling"
     330
     331#: ../gateway-mpay24.php:351
     332msgid "CSS rules for payment page caption. Default"
     333msgstr "CSS Regeln für den Seitentitel des Bezahlfensters. Standard"
     334
     335#: ../gateway-mpay24.php:356
     336msgid "Page Styling"
     337msgstr "Seiten Styling"
     338
     339#: ../gateway-mpay24.php:357
     340msgid "CSS rules for payment page box with inputs. Default"
     341msgstr "CSS Regeln für den Eingabebereich im Bezahlfenster. Standard"
     342
     343#: ../gateway-mpay24.php:362
     344msgid "Input Fields Styling"
     345msgstr "Eingabefelder Styling"
     346
     347#: ../gateway-mpay24.php:363
     348msgid "CSS rules for payment page input fields."
     349msgstr "CSS Regeln für die Eingabefelder im Bezahlfenster."
     350
     351#: ../gateway-mpay24.php:368
     352msgid "Drop Down Lists Styling"
     353msgstr "Auswahllisten Styling"
     354
     355#: ../gateway-mpay24.php:369
     356msgid "CSS rules for payment page drop down lists."
     357msgstr "CSS Regeln für die Auswahllisten im Bezahlfenster."
     358
     359#: ../gateway-mpay24.php:374
     360msgid "Buttons Styling"
     361msgstr "Buttons Styling"
     362
     363#: ../gateway-mpay24.php:375
     364msgid "CSS rules for payment page buttons."
     365msgstr "CSS Regeln für die Buttons im Bezahlfenster."
     366
     367#: ../gateway-mpay24.php:380
     368msgid "Errors Styling"
     369msgstr "Fehler Styling"
     370
     371#: ../gateway-mpay24.php:381
     372msgid "CSS rules for payment page error messages."
     373msgstr "CSS Regeln für Fehlermeldungen im Bezahlfenster."
     374
     375#: ../gateway-mpay24.php:386
     376msgid "Errors Header Styling"
     377msgstr "Fehlerüberschrift Styling"
     378
     379#: ../gateway-mpay24.php:387
     380msgid "CSS rules for payment page error heading."
     381msgstr "CSS Regeln für Fehlerüberschrift im Bezahlfenster."
     382
     383#: ../gateway-mpay24.php:392
     384msgid "Success Title Styling"
     385msgstr "Titel auf Erfolgsseite Styling"
     386
     387#: ../gateway-mpay24.php:393
     388msgid "CSS rules for payment success page title area."
     389msgstr "CSS Regeln für den Seitentitel auf der Erfolgsseite im Bezahlfenster."
     390
     391#: ../gateway-mpay24.php:398
     392msgid "Error Title Styling"
     393msgstr "Titel auf Fehlerseite Styling"
     394
     395#: ../gateway-mpay24.php:399
     396msgid "CSS rules for payment error page title area."
     397msgstr "CSS Regeln für den Seitentitel auf der Fehlerseite im Bezahlfenster."
     398
     399#: ../gateway-mpay24.php:404
     400msgid "Footer Styling"
     401msgstr "Fußzeilen Styling"
     402
     403#: ../gateway-mpay24.php:405
     404msgid "CSS rules for payment page footer area."
     405msgstr "CSS Regeln für den Fußzeilenbereich im Bezahlfenster."
     406
     407# @ wc-mpay24
     408#: ../gateway-mpay24.php:503
    292409msgid "TEST MODE ENABLED"
    293410msgstr "TEST MODUS AKTIVIERT"
    294411
    295 # @ wc-mpay24
    296 #: gateway-mpay24.php:489
     412#: ../gateway-mpay24.php:581
     413msgid "mPAY24 IPN Request Failure"
     414msgstr "mPAY24 IPN Anfrage fehlgeschlagen"
     415
     416# @ wc-mpay24
     417#: ../gateway-mpay24.php:623
    297418msgid "mPAY24 payment completed"
    298419msgstr "mPAY24 Bezahlung abgeschlossen"
    299420
    300421# @ wc-mpay24
    301 #: gateway-mpay24.php:498 gateway-mpay24.php:503 gateway-mpay24.php:506
    302 #: gateway-mpay24.php:510
     422#: ../gateway-mpay24.php:632 ../gateway-mpay24.php:637
     423#: ../gateway-mpay24.php:641 ../gateway-mpay24.php:645
    303424#, php-format
    304425msgid "Payment %s via mPAY24."
    305426msgstr "Bezahlung %s über mPAY24."
     427
     428# @ wc-mpay24
     429#: ../gateway-mpay24.php:638
     430msgid "Payment failed via mPAY24."
     431msgstr "Bezahlung über mPAY24 fehlgeschlagen."
  • woocommerce-mpay24-gateway/trunk/readme.txt

    r803596 r925767  
    55Tags: woocommerce, gateway, mpay24
    66Requires at least: 3.5
    7 Tested up to: 3.7.1
    8 Stable tag: 1.2
     7Tested up to: 3.9.1
     8Stable tag: 1.3
    99License: GNU General Public License v3.0
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1616= Features =
    1717
    18 * Uses mPAY24 PHP files (version 2013-06-24), follows mPAY24 specification (version 2013-10-08)
     18* Uses mPAY24 PHP files (version 2013-06-24), follows mPAY24 specification (version 2014-05-21)
    1919* Using the mPAY24 payment page to integrate in website
    2020* Switching between DEV and PROD mPAY24 environment with SOAP logins
    2121* Supports all payment methods of mPAY24
    22 * Languages available for Wordpress Admin: EN, DE
     22* Languages available for Wordpress admin: EN, DE
    2323* Languages available for payment page: BG, CS, DE, EN, ES, FR, HR, HU, IT, JA, NL, PL, PT, RO, RU, SK, SL, SR, TR, ZH
    2424* Supported currency in payment page: EUR
    25 * no mPAY24 proSafe Support
    26 * default styling for payment page
     25* no mPAY24 proSafe support
     26* CSS styling for payment page
    2727
    2828= mPAY24 =
    2929
    3030If there are newer mPAY24 PHP Files you can replace the files in the folder `MPay24`.
    31 If you want to extend the functionality (e.g. add styling for payment page) you have to edit `class-wc-mpay24-shop.php`
     31If you want to extend the functionality you have to edit `class-wc-mpay24-shop.php`
    3232
    3333== Installation ==
     
    3535= Requirements =
    3636
    37 * php curl (mPAY24 API)
     37* PHP >= 5 (mPAY24 API)
     38* cURL (mPAY24 API)
     39* DOM (mPAY24 API)
     40* Mcrypt (mPAY24 API)
    3841* [WooCommerce Plugin](http://www.woothemes.com/woocommerce/) v2.0 or higher
    3942
     
    42451. Upload `woocommerce-gateway-mpay24` to the `/wp-content/plugins/` directory
    43462. Activate the plugin through the `Plugins` menu in WordPress
    44 3. Configure your mPAY24 settings under `WooCommerce Settings -> Gateways -> MPAY24`
     473. Configure your mPAY24 settings under `WooCommerce Settings -> Checkout -> mPAY24`
    4548
    4649== Frequently Asked Questions ==
     
    5255= How can I change the styling of the payment page? =
    5356
    54 Unfortunatly there are no styling options via the WooCommerce Settings yet. If you need any styling you have to add styling in the function `createMDXI` in file `class-wc-mpay24-shop.php`. The specific code is commented. One rule for styling: You are not allowed to send markup with urls to external (not mPAY24 hosted files) files (e.g. background images).
     57Since version 1.3 there are styling options on the gateway settings page. Basic CSS knowledge is required for this. Some basic changes on the default mPAY24 stylings are implemented as default values. One rule for styling: You are not allowed to send markup with urls to external (not mPAY24 hosted files) files (e.g. background images).
    5558
    56 = I get an permission error for writing in MPay24 folder? =
     59= I get an permission error for writing in mPAY24 folder? =
    5760
    58 If you enable logging in the gateway settings then the curl operations will write a `curllog.log` in MPay24 folder. Please make this folder writable for the webserver.
     61If you enable logging in the gateway settings then the curl operations will write a `curllog.log` in the MPay24 folder of the plugin. Please make this file or the whole folder writable for the webserver.
     62
     63= How to get the current MDXI.xsd from mPAY24? =
     64
     65If a transaction is done, mPAY24 sometimes sends a newer version of the MDXI.xsd file which is located in the MPay24 folder. Make sure that this file can be written by the webserver.
    5966
    6067= The transaction is successful in payment page but in woocommerce the order status is cancelled. What's wrong? =
     
    6976== Changelog ==
    7077
    71 = 1.2 =
     78= 1.3 - 2014-06-03 =
    7279
    73 * 2013-11-12: Update to current mPAY24 specification
    74 * support of new languages for payment page (ES, IT, CS, HR, SK, SL, SR, RO, RU, PL, PT, TR, ZH, JA)
     80* Bugfix: Fatal error - Call to undefined method ListPaymentMethodsResponse::getExternalStatus()
     81* Bugfix: Creating new transaction entries when failed order is payed
     82* Enhancement: Replace deprecated $woocommerce->logger() with new WC_Logger() (deprecated in WC 2.1)
     83* Enhancement: Use responsive payment page template (if mPAY24 set a logo for your payment page you have to call the mPAY24 support to set it also in the mobile template)
     84* Enhancement: Update language files
     85* Enhancement: Update FAQ and screenshots
     86* New Feature: Enable CSS styling of payment page in gateway settings
    7587
    76 = 1.1 =
     88= 1.2 - 2013-11-12 =
    7789
    78 * 2013-04-12: Update to WooCommerce 2.x
    79 * plugin not backward compatible to WooCommerce version < 2.0
    80 * update mPAY24 API to current version
    81 * add some documentation for styling options of the mPAY24 payment page
     90* Enhancement: Update to current mPAY24 specification
     91* Enhancement: Support of new languages for payment page (ES, IT, CS, HR, SK, SL, SR, RO, RU, PL, PT, TR, ZH, JA)
    8292
    83 = 1.0 =
     93= 1.1 - 2013-04-12 =
    8494
    85 * 2012-11-21: Initial Release
     95* Enhancement: Update to WooCommerce 2.x, plugin not backward compatible to WooCommerce version < 2.0
     96* Enhancement: Update mPAY24 API to current version
     97* Enhancement: Add some documentation for styling options of the mPAY24 payment page
     98
     99= 1.0 - 2012-11-21 =
     100
     101* Initial Release
    86102
    87103== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.