Skip to content

Commit

Permalink
Fixed error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Pieters committed Jun 3, 2016
1 parent 442d53e commit 7b56739
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions paynl.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ function getTableSQLFields()
return $SQLfields;
}



function plgVmOnCheckoutAdvertise($cart, &$payment_advertise)
{

Expand Down
3 changes: 3 additions & 0 deletions paynl/api/Exception.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
if(!class_exists('Pay_Exception')){
require_once __DIR__.'/../Exception.php';
}
class Pay_Api_Exception extends Pay_Exception{

}
4 changes: 3 additions & 1 deletion paynl/api/Getservice.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

if(!class_exists('Pay_Api_Exception')){
require_once __DIR__.'/Exception.php';
}
class Pay_Api_Getservice extends Pay_Api {

protected $_version = 'v3';
Expand Down
4 changes: 3 additions & 1 deletion paynl/api/Info.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

if(!class_exists('Pay_Api_Exception')){
require_once __DIR__.'/Exception.php';
}
class Pay_Api_Info extends Pay_Api {

protected $_version = 'v3';
Expand Down
4 changes: 4 additions & 0 deletions paynl/api/Start.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
/**
* Class to use for starting a transaction
*/
if(!class_exists('Pay_Api_Exception')){
require_once __DIR__.'/Exception.php';
}

class Pay_Api_Start extends Pay_Api {

protected $_version = 'v3';
Expand Down

0 comments on commit 7b56739

Please sign in to comment.