Skip to content

Commit 3ee3caf

Browse files
committed
mews/pos v1.7 update
PayFor Ziraat Katilim Destegi
1 parent 3bb4abf commit 3ee3caf

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
### Minimum Gereksinimler
1616
- PHP >= 7.4
17-
- mews/pos ^1.6
17+
- mews/pos ^1.7
1818
- laravel 8, 9, 10, 11, 12
1919

2020
### Kurulum

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"php": ">=7.4",
2424
"illuminate/config": "^8.0|^9.0|^10.0|^11.0|^12.0",
2525
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0",
26-
"mews/pos": "^1.6"
26+
"mews/pos": "^1.7"
2727
},
2828
"require-dev": {
2929
"orchestra/testbench": "^8.17|^9.0|^10.0|^11.0"

config/laravel-pos.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545

4646
// GarantiPos: ProvisionPassword
4747
'refund_user_password' => null,
48+
49+
// PayForPos only
50+
'mbr_id' => null,
4851
],
4952
'gateway_endpoints' => [ // Required
5053
'payment_api' => null, // Required

docs/EXAMPLE_CONFIGURATIONS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ return [
5151

5252
// GarantiPos: ProvisionPassword
5353
'refund_user_password' => null,
54+
55+
// PayForPos: MbrId
56+
'mbr_id' => null,
5457
],
5558
'gateway_endpoints' => [ // Required
5659
'payment_api' => null, // Required
@@ -134,6 +137,7 @@ return [
134137
'user_name' => 'QNB_API_XXXXXXXX', // UserCode: Otorizasyon sistemi kullanıcı kodu.
135138
'user_password' => 'XXXXXXXX', // Otorizasyon sistemi kullanıcı şifresi.
136139
'enc_key' => 'XXXXXXXX', // MerchantPass: 3D Secure şifresidir.
140+
'mbr_id' => \Mews\Pos\Entity\Account\PayForAccount::MBR_ID_FINANSBANK, // veya MBR_ID_ZIRAAT_KATILIM (Kurum Kodu)
137141
],
138142
'gateway_endpoints' => [
139143
'payment_api' => 'https://vpostest.qnbfinansbank.com/Gateway/XMLGate.aspx',

src/Factory/AccountFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Mews\Pos\Entity\Account\AbstractPosAccount;
66
use Mews\Pos\Entity\Account\PayFlexAccount;
7+
use Mews\Pos\Entity\Account\PayForAccount;
78
use Mews\Pos\Exceptions\MissingAccountInfoException;
89
use Mews\Pos\Factory\AccountFactory as MewsPosAccountFactory;
910
use Mews\Pos\Gateways\AkbankPos;
@@ -69,6 +70,7 @@ public static function create(string $gatewayClass, string $name, array $credent
6970
$credentials['payment_model'],
7071
$credentials['enc_key'] ?? null,
7172
$lang,
73+
$credentials['mbr_id'] ?? PayForAccount::MBR_ID_FINANSBANK,
7274
);
7375
case GarantiPos::class:
7476
return MewsPosAccountFactory::createGarantiPosAccount(

0 commit comments

Comments
 (0)