Changeset 760435
- Timestamp:
- 08/21/2013 11:29:20 PM (13 years ago)
- Location:
- webpay-woocommerce-plugin/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
webpay.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
webpay-woocommerce-plugin/trunk/readme.txt
r760404 r760435 11 11 Tested up to: 3.6 12 12 13 Stable tag: 2.1. 613 Stable tag: 2.1.7 14 14 15 15 == Description == … … 23 23 == Changelog == 24 24 25 26 = 2.1.7 = 27 Arreglado el error de callback con las direcciones web largas. Se usan los shortlinks para no tener problemas. 25 28 26 29 = 2.1.6 = -
webpay-woocommerce-plugin/trunk/webpay.php
r760404 r760435 4 4 Description: Sistema de pagos de WooCommerce con WebPay 5 5 Author: Cristian Tala Sánchez 6 Version: 2.1. 66 Version: 2.1.7 7 7 Author URI: www.cristiantala.cl 8 8 Plugin URI: https://bitbucket.org/ctala/woocommerce-webpay/wiki/Home … … 417 417 418 418 $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); 420 420 $order_id = $order_id; 421 422 log_me("REDIRECT_URL ".$redirect_url,$SUFIJO); 421 423 $order_key = $order->order_key; 422 423 $permalinkStructure = get_option('permalink_structure');424 425 if (!empty($permalinkStructure))426 $queryStr = '?';427 else428 $queryStr = '&';429 424 430 425 … … 434 429 435 430 $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 452 432 $myPath = $webpay_comun_folder.DIRECTORY_SEPARATOR."dato$TBK_ID_SESION.log"; 453 433 … … 472 452 'TBK_ORDEN_COMPRA' => $TBK_ORDEN_COMPRA, 473 453 '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", 476 456 ); 477 457 log_me($ccavenue_args);
Note: See TracChangeset
for help on using the changeset viewer.