@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | return false; |
116 | 116 | } |
117 | 117 | |
118 | - return true; |
|
118 | + return true; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | public function postProcess() |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | 'id' => 'id_type', |
296 | 296 | 'name' => 'name' |
297 | 297 | ) |
298 | - ), |
|
298 | + ), |
|
299 | 299 | array( |
300 | 300 | 'type' => 'text', |
301 | 301 | 'label' => $this->l('Minimum amount'), |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | 'id' => 'id_type', |
393 | 393 | 'name' => 'name' |
394 | 394 | ) |
395 | - ), |
|
395 | + ), |
|
396 | 396 | array( |
397 | 397 | 'type' => 'select', |
398 | 398 | 'name' => 'PAYLATER_CART_WIDGET', |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | 'id' => 'id_type', |
414 | 414 | 'name' => 'name' |
415 | 415 | ) |
416 | - ), |
|
416 | + ), |
|
417 | 417 | ), |
418 | 418 | 'submit' => array( |
419 | 419 | 'name' => 'submitPaylaterSettings', |
@@ -501,12 +501,12 @@ discard block |
||
501 | 501 | if (Configuration::get('PAYLATER_ENVIRONMENT') == 0) { |
502 | 502 | if (trim(Configuration::get('PAYLATER_ACCOUNT_ID_TEST')) == false || |
503 | 503 | trim(Configuration::get('PAYLATER_ACCOUNT_KEY_TEST')) == false ) { |
504 | - return false; |
|
504 | + return false; |
|
505 | 505 | } |
506 | 506 | } else { |
507 | 507 | if (trim(Configuration::get('PAYLATER_ACCOUNT_ID_LIVE')) == false || |
508 | 508 | trim(Configuration::get('PAYLATER_ACCOUNT_KEY_LIVE')) == false) { |
509 | - return false; |
|
509 | + return false; |
|
510 | 510 | } |
511 | 511 | } |
512 | 512 | |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | 'quantity' => $p['cart_quantity'], |
524 | 524 | 'amount' => number_format($p['total_wt'], 2, '.', '') |
525 | 525 | ); |
526 | - $desciption[]= $p['name']. " (".$p['cart_quantity'].")"; |
|
526 | + $desciption[]= $p['name']. " (".$p['cart_quantity'].")"; |
|
527 | 527 | } |
528 | 528 | |
529 | 529 | //Shipping address |
@@ -41,9 +41,9 @@ discard block |
||
41 | 41 | |
42 | 42 | //validate the callback |
43 | 43 | if (Configuration::get('PAYLATER_ENVIRONMENT') == 1) { |
44 | - $key_to_use = Configuration::get('PAYLATER_ACCOUNT_KEY_LIVE'); |
|
44 | + $key_to_use = Configuration::get('PAYLATER_ACCOUNT_KEY_LIVE'); |
|
45 | 45 | } else { |
46 | - $key_to_use = Configuration::get('PAYLATER_ACCOUNT_KEY_TEST'); |
|
46 | + $key_to_use = Configuration::get('PAYLATER_ACCOUNT_KEY_TEST'); |
|
47 | 47 | } |
48 | 48 | $signature_check = sha1( |
49 | 49 | $key_to_use . |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | //nothing happen |
88 | 88 | } |
89 | 89 | } else { |
90 | - //nothing happen |
|
90 | + //nothing happen |
|
91 | 91 | } |
92 | 92 | } |
93 | 93 | } |
@@ -26,9 +26,9 @@ |
||
26 | 26 | |
27 | 27 | class PaylaterRedirectModuleFrontController extends ModuleFrontController |
28 | 28 | { |
29 | - /** |
|
30 | - * Do whatever you have to before redirecting the customer on the website of your payment processor. |
|
31 | - */ |
|
29 | + /** |
|
30 | + * Do whatever you have to before redirecting the customer on the website of your payment processor. |
|
31 | + */ |
|
32 | 32 | public function postProcess() |
33 | 33 | { |
34 | 34 | /** |
@@ -46,8 +46,8 @@ |
||
46 | 46 | $link = Context::getContext()->link; |
47 | 47 | $history_link = $link->getPageLink('history'); |
48 | 48 | $this->context->smarty->assign(array( |
49 | - 'total' => $order->total_paid, |
|
50 | - 'history_link' => $history_link |
|
49 | + 'total' => $order->total_paid, |
|
50 | + 'history_link' => $history_link |
|
51 | 51 | )); |
52 | 52 | return $this->setTemplate('confirmation.tpl'); |
53 | 53 | } |
@@ -299,7 +299,7 @@ |
||
299 | 299 | { |
300 | 300 | //1.3 compatibility |
301 | 301 | if (_PS_VERSION_ >= '1.4') { |
302 | - Tools::addJS($js_uri); |
|
302 | + Tools::addJS($js_uri); |
|
303 | 303 | } |
304 | 304 | } |
305 | 305 |
@@ -35,9 +35,9 @@ |
||
35 | 35 | |
36 | 36 | //1.3 compatibility |
37 | 37 | if (_PS_VERSION_ >= '1.4') { |
38 | - // Get out if the Display (BWDisplay to avoid any conflict)) is already defined |
|
39 | - if (!in_array('BWDisplay', get_declared_classes())) |
|
40 | - require_once(dirname(__FILE__).'/Display.php'); |
|
38 | + // Get out if the Display (BWDisplay to avoid any conflict)) is already defined |
|
39 | + if (!in_array('BWDisplay', get_declared_classes())) |
|
40 | + require_once(dirname(__FILE__).'/Display.php'); |
|
41 | 41 | } |
42 | 42 | // If not under an object we don't have to set the context |
43 | 43 | if (!isset($this)) |