Skip to content

Commit 10c4443

Browse files
committed
omnipay v3
1 parent 7dbe519 commit 10c4443

File tree

5 files changed

+18
-14
lines changed

5 files changed

+18
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ to your `composer.json` file:
3030
```json
3131
{
3232
"require": {
33-
"yasinkuyu/omnipay-iyzico": "~2.0"
33+
"yasinkuyu/omnipay-iyzico": "~3.0"
3434
}
3535
}
3636
```

composer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,18 @@
3030
}
3131
},
3232
"require": {
33-
"omnipay/common": "~2.0"
33+
"omnipay/common": "^3"
3434
},
3535
"require-dev": {
36-
"omnipay/tests": "~2.0"
36+
"omnipay/tests": "^3",
37+
"squizlabs/php_codesniffer": "^3",
38+
"phpro/grumphp": "^0.14"
3739
},
3840
"extra": {
3941
"branch-alias": {
40-
"dev-master": "2.0.x-dev"
42+
"dev-master": "3.2.x-dev"
4143
}
42-
}
44+
},
45+
"prefer-stable": true
46+
4347
}

example/checkout.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
$response = $gateway->checkout(
66
[
77
'enabled_installments' => array(1,2,3,4,5,6,7,8,9),
8-
'conversationId'=> '123456', # conversationId
9-
'amount' => 9.00,
8+
'conversationId'=> '123123', # replace conversationId
9+
'amount' => 17.00,
1010
'currency' => 'TRY',
1111
'card' => $options,
1212

@@ -19,7 +19,7 @@
1919
array(
2020
'id' => 1,
2121
'name' => 10,
22-
'price' => 9.00, // product totals must be equal to *amount*
22+
'price' => 17.00, // product totals must be equal to *amount*
2323
'description' => 'Product 1 Desc',
2424
'quantity' => 2
2525
)

example/checkout_callback.php

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

55
$response = $gateway->checkout_status(
66
[
7-
'token' => "21772e3b-0eb6-46c2-8499-a40d66253f2e",
8-
'conversationId'=> '123456',
7+
'token' => "9ace99f2-2a49-4d25-9018-8f14da58a007",
8+
'conversationId'=> '123123',
99
]
1010
)->send();
1111

example/options.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
$gateway->setTestMode(true); // sandbox mode
1212

1313
$options = [
14-
'number' => '5526080000000006',
15-
'expiryMonth' => '10',
16-
'expiryYear' => '2023',
17-
'cvv' => '000',
14+
'number' => '5526080000000006', // not needed in ***checkout*** mode. should not be left blank.
15+
'expiryMonth' => '10', // not needed in ***checkout*** mode. should not be left blank.
16+
'expiryYear' => '2023', // not needed in ***checkout*** mode. should not be left blank.
17+
'cvv' => '000', // not needed in ***checkout*** mode. should not be left blank.
1818
'firstName' => 'Yasin',
1919
'lastName' => 'Kuyu',
2020
'email' => 'yasin@sample.com',

0 commit comments

Comments
 (0)