Plugin Directory

Changeset 1478774


Ignore:
Timestamp:
08/19/2016 01:19:16 PM (10 years ago)
Author:
zibbra
Message:

release 1.3.1

Location:
zibbra/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zibbra/trunk/modules/checkout.php

    r1474412 r1478774  
    228228            // Get the payment adapter
    229229
    230             $oPaymentAdapter = $oCart->getPayment();
     230            $oPaymentAdapter = false;
     231
     232            if(($payment = $adapter->getSessionValue("payment",false)) !== false) {
     233
     234                $oPaymentAdapter = ZPayment::get($payment);
     235
     236            } // end if
    231237
    232238            // Create the order
     
    272278            // Dispatch Payment
    273279
    274             if(($payment = $adapter->getSessionValue("payment",false)) !== false) {
    275 
    276                 $oPaymentAdapter = ZPayment::get($payment);
    277 
    278                 if($oPaymentAdapter && !$adapter->getSessionValue("payment.complete",false) && $amount>0) {
    279 
    280                     $oPaymentAdapter->setReturnUrl(site_url("/zibbra/payment/return"));
    281                     $oPaymentAdapter->setCancelUrl(site_url("/zibbra/payment/cancel"));
    282                     $oPaymentAdapter->dispatch($orderid, $number, $amount);
    283 
    284                 } // end if
     280            if($oPaymentAdapter !== false && !$adapter->getSessionValue("payment.complete",false) && $amount>0) {
     281
     282                $oPaymentAdapter->setReturnUrl(site_url("/zibbra/payment/return"));
     283                $oPaymentAdapter->setCancelUrl(site_url("/zibbra/payment/cancel"));
     284                $oPaymentAdapter->dispatch($orderid, $number, $amount);
    285285
    286286            } // end if
  • zibbra/trunk/readme.txt

    r1474412 r1478774  
    11=== Zibbra ===
    22Requires at least: 4.3.1
    3 Tested up to: 4.5.3
     3Tested up to: 4.6.0
    44Contributors: Zibbra
    55Tags: Ecommerce, Cloud
    6 Stable tag: 1.3.0
     6Stable tag: 1.3.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151
    5252== Changelog ==
     53
     54= 1.3.1 =
     55
     56* Bugfix in checkout, load payment adapters before cartToOrder
    5357
    5458= 1.3.0 =
  • zibbra/trunk/zibbra.php

    r1474412 r1478774  
    66 * Plugin URI: http://wordpress.org/plugins/zibbra/
    77 * Description: Zibbra integration plugin for Wordpress
    8  * Version: 1.3.0
     8 * Version: 1.3.1
    99 * Author: Zibbra
    1010 * Author URI: https://www.zibbra.com
     
    8181        const FORM_ACTION = "zibbra";
    8282        const ROLE = "customer";
    83         const VERSION = "1.3.0";
     83        const VERSION = "1.3.1";
    8484       
    8585        private $controller = null;
Note: See TracChangeset for help on using the changeset viewer.