Changeset 1856685
- Timestamp:
- 04/11/2018 07:48:42 PM (8 years ago)
- Location:
- webpayplus-pst
- Files:
-
- 11 edited
- 5 copied
-
tags/1.3.1 (copied) (copied from webpayplus-pst/trunk)
-
tags/1.3.1/classes/HTTPHelper.php (copied) (copied from webpayplus-pst/trunk/classes/HTTPHelper.php)
-
tags/1.3.1/classes/WC_Gateway_TBKAAS.php (copied) (copied from webpayplus-pst/trunk/classes/WC_Gateway_TBKAAS.php) (1 diff)
-
tags/1.3.1/readme.txt (copied) (copied from webpayplus-pst/trunk/readme.txt) (1 diff)
-
tags/1.3.1/tbkaas-woo-gateway.php (copied) (copied from webpayplus-pst/trunk/tbkaas-woo-gateway.php) (1 diff)
-
tags/1.3.1/vendor/composer/ClassLoader.php (modified) (6 diffs)
-
tags/1.3.1/vendor/composer/LICENSE (modified) (1 diff)
-
tags/1.3.1/vendor/composer/autoload_real.php (modified) (1 diff)
-
tags/1.3.1/vendor/composer/installed.json (modified) (1 diff)
-
trunk/classes/WC_Gateway_TBKAAS.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/tbkaas-woo-gateway.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (6 diffs)
-
trunk/vendor/composer/LICENSE (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (1 diff)
-
trunk/vendor/composer/installed.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
webpayplus-pst/tags/1.3.1/classes/WC_Gateway_TBKAAS.php
r1605773 r1856685 421 421 /* 422 422 * Si el mensaje está validado verifico que la orden sea haya completado. 423 * Si se completó la marco como completa y agrego los meta datos423 * Si se completó y los montos corresponden la marco como completa y agrego los meta datos 424 424 */ 425 426 $ct_monto = $response->ct_monto; 427 $monto = round($order->order_total); 428 429 if ($ct_monto != $monto) { 430 431 Logger::log_me_wp("Montos NO Corresponden"); 432 Logger::log_me_wp("Monto $ct_monto recibido es distinto a monto orden $monto"); 433 $order->update_status('failed', "El pago del pedido no fue exitoso debido a montos distintos"); 434 add_post_meta($order_id, '_order_id_mall', $response->ct_order_id_mall, true); 435 if ($return) { 436 $http_helper->my_http_response_code(200); 437 } 438 } 439 else 440 { 441 Logger::log_me_wp("Montos SI Corresponden"); 442 } 443 444 425 445 $ct_estado = $response->ct_estado; 426 446 Logger::log_me_wp("ESTADO DE LA ORDEN : $ct_estado"); -
webpayplus-pst/tags/1.3.1/readme.txt
r1605773 r1856685 36 36 == Changelog == 37 37 38 39 = 1.3.1 = 40 * Forced Verification of montos. 41 42 38 43 = 1.3.0 = 39 44 * Added HTTPHelper -
webpayplus-pst/tags/1.3.1/tbkaas-woo-gateway.php
r1605773 r1856685 4 4 5 5 /* 6 Plugin Name: Pago Fácil.org- WebpayPlus7 Plugin URI: http://www.pagofacil. org8 Description: Pasarela de Pagos para Woocommerce y Transbank usando WebPayPlus Webservices a través de PagoFacil. org9 Version: 1.3. 06 Plugin Name: Pago Fácil - WebpayPlus 7 Plugin URI: http://www.pagofacil.cl 8 Description: Pasarela de Pagos para Woocommerce y Transbank usando WebPayPlus Webservices a través de PagoFacil.cl 9 Version: 1.3.1 10 10 Author: Cristian Tala Sánchez 11 11 Author URI: http://www.cristiantala.cl -
webpayplus-pst/tags/1.3.1/vendor/composer/ClassLoader.php
r1550323 r1856685 56 56 private $classMapAuthoritative = false; 57 57 private $missingClasses = array(); 58 private $apcuPrefix; 58 59 59 60 public function getPrefixes() … … 273 274 274 275 /** 276 * APCu prefix to use to cache found/not-found classes, if the extension is enabled. 277 * 278 * @param string|null $apcuPrefix 279 */ 280 public function setApcuPrefix($apcuPrefix) 281 { 282 $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; 283 } 284 285 /** 286 * The APCu prefix in use, or null if APCu caching is not enabled. 287 * 288 * @return string|null 289 */ 290 public function getApcuPrefix() 291 { 292 return $this->apcuPrefix; 293 } 294 295 /** 275 296 * Registers this instance as an autoloader. 276 297 * … … 314 335 public function findFile($class) 315 336 { 316 // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731317 if ('\\' == $class[0]) {318 $class = substr($class, 1);319 }320 321 337 // class map lookup 322 338 if (isset($this->classMap[$class])) { … … 326 342 return false; 327 343 } 344 if (null !== $this->apcuPrefix) { 345 $file = apcu_fetch($this->apcuPrefix.$class, $hit); 346 if ($hit) { 347 return $file; 348 } 349 } 328 350 329 351 $file = $this->findFileWithExtension($class, '.php'); … … 334 356 } 335 357 358 if (null !== $this->apcuPrefix) { 359 apcu_add($this->apcuPrefix.$class, $file); 360 } 361 336 362 if (false === $file) { 337 363 // Remember that this class does not exist. … … 349 375 $first = $class[0]; 350 376 if (isset($this->prefixLengthsPsr4[$first])) { 351 foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { 352 if (0 === strpos($class, $prefix)) { 353 foreach ($this->prefixDirsPsr4[$prefix] as $dir) { 377 $subPath = $class; 378 while (false !== $lastPos = strrpos($subPath, '\\')) { 379 $subPath = substr($subPath, 0, $lastPos); 380 $search = $subPath.'\\'; 381 if (isset($this->prefixDirsPsr4[$search])) { 382 foreach ($this->prefixDirsPsr4[$search] as $dir) { 383 $length = $this->prefixLengthsPsr4[$first][$search]; 354 384 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { 355 385 return $file; -
webpayplus-pst/tags/1.3.1/vendor/composer/LICENSE
r1491276 r1856685 1 1 2 Copyright (c) 2016Nils Adermann, Jordi Boggiano2 Copyright (c) Nils Adermann, Jordi Boggiano 3 3 4 4 Permission is hereby granted, free of charge, to any person obtaining a copy -
webpayplus-pst/tags/1.3.1/vendor/composer/autoload_real.php
r1550323 r1856685 24 24 spl_autoload_unregister(array('ComposerAutoloaderInit119bd6ab147b3fbc112a53a5d852e51a', 'loadClassLoader')); 25 25 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') ;26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 27 27 if ($useStaticLoader) { 28 28 require_once __DIR__ . '/autoload_static.php'; -
webpayplus-pst/tags/1.3.1/vendor/composer/installed.json
r1550323 r1856685 15 15 "shasum": "" 16 16 }, 17 "time": "2016-12-07 12:57:39",17 "time": "2016-12-07T12:57:39+00:00", 18 18 "type": "library", 19 19 "installation-source": "dist", -
webpayplus-pst/trunk/classes/WC_Gateway_TBKAAS.php
r1605773 r1856685 421 421 /* 422 422 * Si el mensaje está validado verifico que la orden sea haya completado. 423 * Si se completó la marco como completa y agrego los meta datos423 * Si se completó y los montos corresponden la marco como completa y agrego los meta datos 424 424 */ 425 426 $ct_monto = $response->ct_monto; 427 $monto = round($order->order_total); 428 429 if ($ct_monto != $monto) { 430 431 Logger::log_me_wp("Montos NO Corresponden"); 432 Logger::log_me_wp("Monto $ct_monto recibido es distinto a monto orden $monto"); 433 $order->update_status('failed', "El pago del pedido no fue exitoso debido a montos distintos"); 434 add_post_meta($order_id, '_order_id_mall', $response->ct_order_id_mall, true); 435 if ($return) { 436 $http_helper->my_http_response_code(200); 437 } 438 } 439 else 440 { 441 Logger::log_me_wp("Montos SI Corresponden"); 442 } 443 444 425 445 $ct_estado = $response->ct_estado; 426 446 Logger::log_me_wp("ESTADO DE LA ORDEN : $ct_estado"); -
webpayplus-pst/trunk/readme.txt
r1605773 r1856685 36 36 == Changelog == 37 37 38 39 = 1.3.1 = 40 * Forced Verification of montos. 41 42 38 43 = 1.3.0 = 39 44 * Added HTTPHelper -
webpayplus-pst/trunk/tbkaas-woo-gateway.php
r1605773 r1856685 4 4 5 5 /* 6 Plugin Name: Pago Fácil.org- WebpayPlus7 Plugin URI: http://www.pagofacil. org8 Description: Pasarela de Pagos para Woocommerce y Transbank usando WebPayPlus Webservices a través de PagoFacil. org9 Version: 1.3. 06 Plugin Name: Pago Fácil - WebpayPlus 7 Plugin URI: http://www.pagofacil.cl 8 Description: Pasarela de Pagos para Woocommerce y Transbank usando WebPayPlus Webservices a través de PagoFacil.cl 9 Version: 1.3.1 10 10 Author: Cristian Tala Sánchez 11 11 Author URI: http://www.cristiantala.cl -
webpayplus-pst/trunk/vendor/composer/ClassLoader.php
r1550323 r1856685 56 56 private $classMapAuthoritative = false; 57 57 private $missingClasses = array(); 58 private $apcuPrefix; 58 59 59 60 public function getPrefixes() … … 273 274 274 275 /** 276 * APCu prefix to use to cache found/not-found classes, if the extension is enabled. 277 * 278 * @param string|null $apcuPrefix 279 */ 280 public function setApcuPrefix($apcuPrefix) 281 { 282 $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; 283 } 284 285 /** 286 * The APCu prefix in use, or null if APCu caching is not enabled. 287 * 288 * @return string|null 289 */ 290 public function getApcuPrefix() 291 { 292 return $this->apcuPrefix; 293 } 294 295 /** 275 296 * Registers this instance as an autoloader. 276 297 * … … 314 335 public function findFile($class) 315 336 { 316 // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731317 if ('\\' == $class[0]) {318 $class = substr($class, 1);319 }320 321 337 // class map lookup 322 338 if (isset($this->classMap[$class])) { … … 326 342 return false; 327 343 } 344 if (null !== $this->apcuPrefix) { 345 $file = apcu_fetch($this->apcuPrefix.$class, $hit); 346 if ($hit) { 347 return $file; 348 } 349 } 328 350 329 351 $file = $this->findFileWithExtension($class, '.php'); … … 334 356 } 335 357 358 if (null !== $this->apcuPrefix) { 359 apcu_add($this->apcuPrefix.$class, $file); 360 } 361 336 362 if (false === $file) { 337 363 // Remember that this class does not exist. … … 349 375 $first = $class[0]; 350 376 if (isset($this->prefixLengthsPsr4[$first])) { 351 foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { 352 if (0 === strpos($class, $prefix)) { 353 foreach ($this->prefixDirsPsr4[$prefix] as $dir) { 377 $subPath = $class; 378 while (false !== $lastPos = strrpos($subPath, '\\')) { 379 $subPath = substr($subPath, 0, $lastPos); 380 $search = $subPath.'\\'; 381 if (isset($this->prefixDirsPsr4[$search])) { 382 foreach ($this->prefixDirsPsr4[$search] as $dir) { 383 $length = $this->prefixLengthsPsr4[$first][$search]; 354 384 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { 355 385 return $file; -
webpayplus-pst/trunk/vendor/composer/LICENSE
r1491276 r1856685 1 1 2 Copyright (c) 2016Nils Adermann, Jordi Boggiano2 Copyright (c) Nils Adermann, Jordi Boggiano 3 3 4 4 Permission is hereby granted, free of charge, to any person obtaining a copy -
webpayplus-pst/trunk/vendor/composer/autoload_real.php
r1550323 r1856685 24 24 spl_autoload_unregister(array('ComposerAutoloaderInit119bd6ab147b3fbc112a53a5d852e51a', 'loadClassLoader')); 25 25 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') ;26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 27 27 if ($useStaticLoader) { 28 28 require_once __DIR__ . '/autoload_static.php'; -
webpayplus-pst/trunk/vendor/composer/installed.json
r1550323 r1856685 15 15 "shasum": "" 16 16 }, 17 "time": "2016-12-07 12:57:39",17 "time": "2016-12-07T12:57:39+00:00", 18 18 "type": "library", 19 19 "installation-source": "dist",
Note: See TracChangeset
for help on using the changeset viewer.