Skip to content

Commit

Permalink
Merge pull request #7 from nuryagdym/master
Browse files Browse the repository at this point in the history
replace mcrypt and some fixes, enhancements, unit tests
  • Loading branch information
mewebstudio authored Apr 10, 2020
2 parents 897aeb5 + 58e30e5 commit a33c15e
Show file tree
Hide file tree
Showing 14 changed files with 1,160 additions and 451 deletions.
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@
"php": "^7.1.3",
"ext-dom": "*",
"ext-json": "*",
"ext-mcrypt": "*",
"ext-openssl": "*",
"ext-SimpleXML": "*",
"guzzlehttp/guzzle": "6.3.3",
"symfony/http-foundation": "^4.1",
"symfony/serializer": "^4.1"
"symfony/serializer": "^5.0"
},
"autoload": {
"psr-4": {
"Mews\\Pos\\": "src/"
}
}
},
"require-dev": {
"phpunit/phpunit": "^9.0"
}
}
27 changes: 23 additions & 4 deletions config/pos.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@
],
]
],
'teb' => [
'name' => 'TEB',
'class' => Mews\Pos\EstPos::class,
'urls' => [
'production' => 'https://sanalpos.teb.com.tr/fim/api',
'test' => 'https://entegrasyon.asseco-see.com.tr/fim/api',
'gateway' => [
'production' => 'https://sanalpos.teb.com.tr/fim/est3Dgate',
'test' => 'https://entegrasyon.asseco-see.com.tr/fim/est3Dgate',
],
]
],
'isbank' => [
'name' => 'İşbank',
'class' => Mews\Pos\EstPos::class,
Expand Down Expand Up @@ -90,13 +102,20 @@
'name' => 'Yapıkredi',
'class' => Mews\Pos\PosNet::class,
'urls' => [
'production' => 'https://posnet.yapikredi.com.tr/PosnetWebService/XML',
'production' => 'https://www.posnet.ykb.com/PosnetWebService/XML',
'test' => 'https://setmpos.ykb.com/PosnetWebService/XML',
'gateway' => [
'production' => 'https://posnet.ykb.com/3DSWebService/YKBPaymentService',
'production' => 'https://www.posnet.ykb.com/3DSWebService/YKBPaymentService',
'test' => 'https://setmpos.ykb.com/3DSWebService/YKBPaymentService',
],
]
],
'order' => [
'id_total_length' => 24,
'id_length' => 20,
'id_3d_prefix' => 'TDSC',
'id_3d_pay_prefix' => '', //?
'id_regular_prefix' => '' //?
]
],
'garanti' => [
'name' => 'Garanti',
Expand All @@ -109,7 +128,7 @@
'test' => 'https://sanalposprovtest.garanti.com.tr/servlet/gt3dengine',
],
]
],
]
],

];
25 changes: 25 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">

<testsuite name="Integration">
<directory>tests</directory>
</testsuite>

<filter>
<whitelist>
<directory suffix=".php">src</directory>
<exclude>
<directory>vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
Loading

0 comments on commit a33c15e

Please sign in to comment.