-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
3,728 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
use Mews\Pos\PosInterface; | ||
|
||
require '../_payment_config.php'; | ||
|
||
$baseUrl = $bankTestsUrl.'/3d-host/'; | ||
//account bilgileri kendi account bilgilerinizle degistiriniz | ||
$account = \Mews\Pos\Factory\AccountFactory::createAkOdePosAccount( | ||
'akode', | ||
'1000000494', | ||
'POS_ENT_Test_001', | ||
'POS_ENT_Test_001!*!*', | ||
); | ||
|
||
$pos = getGateway($account, $eventDispatcher); | ||
|
||
$transaction = PosInterface::TX_PAY; | ||
|
||
$templateTitle = '3D Host Model Payment'; | ||
$paymentModel = PosInterface::MODEL_3D_HOST; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
require '../../_common-codes/3d-host/index.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
|
||
$card = null; | ||
require '../../_templates/_payment_response.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
use Mews\Pos\PosInterface; | ||
|
||
require '../_payment_config.php'; | ||
|
||
$baseUrl = $bankTestsUrl.'/3d-pay/'; | ||
//account bilgileri kendi account bilgilerinizle degistiriniz | ||
$account = \Mews\Pos\Factory\AccountFactory::createAkOdePosAccount( | ||
'akode', | ||
'1000000494', | ||
'POS_ENT_Test_001', | ||
'POS_ENT_Test_001!*!*', | ||
); | ||
|
||
$pos = getGateway($account, $eventDispatcher); | ||
|
||
$transaction = $session->get('tx', PosInterface::TX_PAY); | ||
|
||
$templateTitle = '3D Pay Model Payment'; | ||
$paymentModel = PosInterface::MODEL_3D_PAY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
require '../../_common-codes/3d/form.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
require '../../_common-codes/3d/index.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
|
||
$card = null; | ||
require '../../_templates/_payment_response.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
use Mews\Pos\Entity\Card\CreditCardInterface; | ||
|
||
require __DIR__.'/../_main_config.php'; | ||
|
||
$bankTestsUrl = $hostUrl.'/akode'; | ||
$posClass = \Mews\Pos\Gateways\AkOdePos::class; | ||
|
||
$testCards = [ | ||
'visa1' => [ | ||
'number' => '4159560047417732', | ||
'year' => '24', | ||
'month' => '08', | ||
'cvv' => '123', | ||
'name' => 'John Doe', | ||
'type' => CreditCardInterface::CARD_TYPE_VISA, | ||
], | ||
'master' => [ | ||
'number' => '5571135571135575', | ||
'year' => '24', | ||
'month' => '12', | ||
'cvv' => '000', | ||
'name' => 'John Doe', | ||
'type' => CreditCardInterface::CARD_TYPE_VISA, | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
|
||
$templateTitle = 'Ak Ode'; | ||
require './_payment_config.php'; | ||
require '../_templates/_header.php'; | ||
require '../_templates/_footer.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
use Mews\Pos\PosInterface; | ||
|
||
require '../_payment_config.php'; | ||
|
||
$baseUrl = $bankTestsUrl.'/regular/'; | ||
//account bilgileri kendi account bilgilerinizle degistiriniz | ||
$account = \Mews\Pos\Factory\AccountFactory::createAkOdePosAccount( | ||
'akode', | ||
'1000000494', | ||
'POS_ENT_Test_001', | ||
'POS_ENT_Test_001!*!*', | ||
); | ||
|
||
$pos = getGateway($account, $eventDispatcher); | ||
|
||
$transaction = $session->get('tx', PosInterface::TX_PAY); | ||
|
||
$templateTitle = 'Regular Payment'; | ||
$paymentModel = PosInterface::MODEL_NON_SECURE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
require '../../_common-codes/regular/cancel.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
require '../../_common-codes/regular/form.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
use Mews\Pos\PosInterface; | ||
|
||
$templateTitle = 'History Order'; | ||
|
||
require '_config.php'; | ||
require '../../_templates/_header.php'; | ||
|
||
$ord = $session->get('order'); | ||
|
||
$order = [ | ||
'id' => $ord ? $ord['id'] : '973009309', | ||
'transactionDate' => new DateTime(), // odeme tarihi | ||
'page' => 1, // optional, default: 1 | ||
'pageSize' => 10, // optional, default: 10 | ||
'rand' => substr(md5(uniqid(time())), 0, 23), //AkOde | ||
]; | ||
|
||
$transaction = PosInterface::TX_HISTORY; | ||
// History Order | ||
$query = $pos->history($order); | ||
|
||
$response = $query->getResponse(); | ||
require '../../_templates/_simple_response_dump.php'; | ||
require '../../_templates/_footer.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
require '../../_common-codes/3d/index.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
require '../../_common-codes/regular/post-auth.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
require '../../_common-codes/regular/refund.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
require '../../_common-codes/regular/status.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.