Plugin Directory

Changeset 760435


Ignore:
Timestamp:
08/21/2013 11:29:20 PM (13 years ago)
Author:
ctala
Message:

Arreglado el problema con las URL largas y webpay ( Problemas con el tamaño del POST )

Location:
webpay-woocommerce-plugin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • webpay-woocommerce-plugin/trunk/readme.txt

    r760404 r760435  
    1111Tested up to: 3.6
    1212
    13 Stable tag: 2.1.6
     13Stable tag: 2.1.7
    1414
    1515== Description ==
     
    2323== Changelog ==
    2424
     25
     26= 2.1.7 =
     27Arreglado el error de callback con las direcciones web largas. Se usan los shortlinks para no tener problemas.
    2528
    2629= 2.1.6 =
  • webpay-woocommerce-plugin/trunk/webpay.php

    r760404 r760435  
    44  Description: Sistema de pagos de WooCommerce con WebPay
    55  Author: Cristian Tala Sánchez
    6   Version: 2.1.6
     6  Version: 2.1.7
    77  Author URI: www.cristiantala.cl
    88  Plugin URI: https://bitbucket.org/ctala/woocommerce-webpay/wiki/Home
     
    417417
    418418            $order = &new WC_Order($order_id);
    419             $redirect_url = ($this->redirect_page_id == "" || $this->redirect_page_id == 0) ? get_site_url() . "/" : get_permalink($this->redirect_page_id);
     419            $redirect_url = get_site_url() ."/?page_id=".($this->redirect_page_id);
    420420            $order_id = $order_id;
     421
     422        log_me("REDIRECT_URL ".$redirect_url,$SUFIJO);
    421423            $order_key = $order->order_key;
    422 
    423             $permalinkStructure = get_option('permalink_structure');
    424 
    425             if (!empty($permalinkStructure))
    426                 $queryStr = '?';
    427             else
    428                 $queryStr = '&';
    429424
    430425
     
    434429
    435430            $filename = __FILE__;
    436 //            if(file_exists($filename)):
    437 //                if(!is_dir($filename))
    438 //                {
    439 //                    mkdir(dirname($filename), 0777);
    440 //                    chmod(dirname($filename), 0777);
    441 //                }
    442 //            endif;
    443             //Archivos de datos para uso de pagina de cierre
    444 
    445             //log_me("Entrando a la verificación de carpetas", $SUFIJO);
    446             //if (!is_dir(dirname($filename) . "/comun")) {
    447             //    mkdir(dirname($filename) . "/comun", 0777);
    448             //    chmod(dirname($filename) . "/comun", 0777);
    449             //}
    450 
    451             //$myPath = dirname(__FILE__) . "/comun/dato$TBK_ID_SESION.log";
     431
    452432            $myPath = $webpay_comun_folder.DIRECTORY_SEPARATOR."dato$TBK_ID_SESION.log";
    453433
     
    472452                'TBK_ORDEN_COMPRA' => $TBK_ORDEN_COMPRA,
    473453                'TBK_ID_SESION' => $TBK_ID_SESION,
    474                 'TBK_URL_EXITO' => $redirect_url . $queryStr . "status=success&order=$order_id&key=$order_key",
    475                 'TBK_URL_FRACASO' => $redirect_url . $queryStr . "status=failure&order=$order_id&key=$order_key",
     454                'TBK_URL_EXITO' => $redirect_url  . "&status=success&order=$order_id&key=$order_key",
     455                'TBK_URL_FRACASO' => $redirect_url. "&status=failure&order=$order_id&key=$order_key",
    476456            );
    477457            log_me($ccavenue_args);
Note: See TracChangeset for help on using the changeset viewer.