Skip to content

Commit

Permalink
Api V2
Browse files Browse the repository at this point in the history
  • Loading branch information
progcode committed Jun 8, 2020
1 parent f2bc394 commit 7405af4
Show file tree
Hide file tree
Showing 11 changed files with 340 additions and 273 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# OTP Simple SDK
# OTP Simplepay SDK

![](https://s3.amazonaws.com/assets-github/repo/progcode/img/otp_simple.png)
![](https://simplepay.hu/wp-content/uploads/2019/09/simpleLogo-e1569844953356.png)

This is the OTP Simple Pamyent SDK.

Version: 1.1.0
Version: 2.0.0
Support V1 & V2 API versions

You can find more info: https://www.simplepay.hu/fejlesztoknek

Expand Down
14 changes: 7 additions & 7 deletions Source/SimpleBackRef.php → Source/V1/SimpleBackRef.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* @category SDK
* @package SimplePay_SDK
* @author SimplePay IT <[email protected]>
* @copyright 2016 OTP Mobil Kft.
* @copyright 2016 OTP Mobil Kft.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL V3.0)
* @version 1.0
* @link http://simplepartner.hu/online_fizetesi_szolgaltatas.html
*
*
*/

namespace Iconocoders\OtpSimpleSdk\Source;
namespace Source\V1;

use Iconocoders\OtpSimpleSdk\Source\SimpleTransaction;
use Source\V1\SimpleTransaction;

/**
* SimplePay BACK_REF
*
*
* Processes information sent via HTTP GET on the returning site after a payment
*
* @category SDK
Expand Down Expand Up @@ -69,7 +69,7 @@ class SimpleBackRef extends SimpleTransaction
"IN_PROGRESS", //card authorized on backref
"PAYMENT_AUTHORIZED", //IPN
"COMPLETE", //IDN
"WAITING_PAYMENT", //waiting for WIRE
"WAITING_PAYMENT", //waiting for WIRE
);
public $unsuccessfulStatus = array(
"CARD_NOTAUTHORIZED", //unsuccessful transaction
Expand Down
8 changes: 4 additions & 4 deletions Source/SimpleBase.php → Source/V1/SimpleBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* @category SDK
* @package SimplePay_SDK
* @author SimplePay IT <[email protected]>
* @copyright 2016 OTP Mobil Kft.
* @copyright 2016 OTP Mobil Kft.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL V3.0)
* @version 1.0
* @link http://simplepartner.hu/online_fizetesi_szolgaltatas.html
*
*
*/

namespace Iconocoders\OtpSimpleSdk\Source;
namespace Source\V1;

/**
* Base class for SimplePay implementation
Expand Down
10 changes: 5 additions & 5 deletions Source/SimpleIdn.php → Source/V1/SimpleIdn.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* @category SDK
* @package SimplePay_SDK
* @author SimplePay IT <[email protected]>
* @copyright 2016 OTP Mobil Kft.
* @copyright 2016 OTP Mobil Kft.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL V3.0)
* @version 1.0
* @link http://simplepartner.hu/online_fizetesi_szolgaltatas.html
*
*
*/

namespace Iconocoders\OtpSimpleSdk\Source;
namespace Source\V1;

use Iconocoders\OtpSimpleSdk\Source\SimpleTransaction;
use Source\V1\SimpleTransaction;

/**
* SimplePay Instant Delivery Information
Expand Down
12 changes: 6 additions & 6 deletions Source/SimpleIos.php → Source/V1/SimpleIos.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* @category SDK
* @package SimplePay_SDK
* @author SimplePay IT <[email protected]>
* @copyright 2016 OTP Mobil Kft.
* @copyright 2016 OTP Mobil Kft.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL V3.0)
* @version 1.0
* @link http://simplepartner.hu/online_fizetesi_szolgaltatas.html
*
*
*/

namespace Iconocoders\OtpSimpleSdk\Source;
namespace Source\V1;

use Iconocoders\OtpSimpleSdk\Source\SimpleTransaction;
use Source\V1\SimpleTransaction;

/**
* SimpleIOS
*
*
* Helper object containing information about a product
*
* @category SDK
Expand Down
12 changes: 6 additions & 6 deletions Source/SimpleIpn.php → Source/V1/SimpleIpn.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* @category SDK
* @package SimplePay_SDK
* @author SimplePay IT <[email protected]>
* @copyright 2016 OTP Mobil Kft.
* @copyright 2016 OTP Mobil Kft.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL V3.0)
* @version 1.0
* @link http://simplepartner.hu/online_fizetesi_szolgaltatas.html
*
*
*/

namespace Iconocoders\OtpSimpleSdk\Source;
namespace Source\V1;

use Iconocoders\OtpSimpleSdk\Source\SimpleBase;
use Source\V1\SimpleBase;

/**
* SimplePay Instant Payment Notification
Expand Down Expand Up @@ -160,4 +160,4 @@ protected function ipnPostDataCheck()
}
return true;
}
}
}
14 changes: 7 additions & 7 deletions Source/SimpleIrn.php → Source/V1/SimpleIrn.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* @category SDK
* @package SimplePay_SDK
* @author SimplePay IT <[email protected]>
* @copyright 2016 OTP Mobil Kft.
* @copyright 2016 OTP Mobil Kft.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL V3.0)
* @version 1.0
* @link http://simplepartner.hu/online_fizetesi_szolgaltatas.html
*
*
*/

namespace Iconocoders\OtpSimpleSdk\Source;
namespace Source\V1;

use Iconocoders\OtpSimpleSdk\Source\SimpleTransaction;
use Source\V1\SimpleTransaction;

/**
* SimplePay Instant Refund Notification
*
* Sends Refund request via HTTP request
*
*
* @category SDK
* @package SimplePay_SDK
* @author SimplePay IT <[email protected]>
Expand Down Expand Up @@ -142,4 +142,4 @@ public function requestIrn($data = array())
$this->debugMessage[] = 'IRN RESULT: NOT STRING';
return false;
}
}
}
10 changes: 5 additions & 5 deletions Source/SimpleLiveUpdate.php → Source/V1/SimpleLiveUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* @category SDK
* @package SimplePay_SDK
* @author SimplePay IT <[email protected]>
* @copyright 2016 OTP Mobil Kft.
* @copyright 2016 OTP Mobil Kft.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL V3.0)
* @version 1.0
* @link http://simplepartner.hu/online_fizetesi_szolgaltatas.html
*
*
*/

namespace Iconocoders\OtpSimpleSdk\Source;
namespace Source\V1;

use Iconocoders\OtpSimpleSdk\Source\SimpleTransaction;
use Source\V1\SimpleTransaction;

/**
* SimplePay LiveUpdate
Expand Down
12 changes: 6 additions & 6 deletions Source/SimpleTransaction.php → Source/V1/SimpleTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* @category SDK
* @package SimplePay_SDK
* @author SimplePay IT <[email protected]>
* @copyright 2016 OTP Mobil Kft.
* @copyright 2016 OTP Mobil Kft.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL V3.0)
* @version 1.0
* @link http://simplepartner.hu/online_fizetesi_szolgaltatas.html
*
*
*/

namespace Iconocoders\OtpSimpleSdk\Source;
namespace Source\V1;

use Iconocoders\OtpSimpleSdk\Source\SimpleBase;
use Source\V1\SimpleBase;

/**
*
*
for SimplePay transaction handling
*
* @category SDK
Expand Down
Loading

0 comments on commit 7405af4

Please sign in to comment.