Skip to content

Commit e71dc04

Browse files
committed
Merge branch 'main' of github.com:SmartBase-SK/tatrapayplus-docs
2 parents 3b30d56 + 7aaa8b4 commit e71dc04

File tree

6 files changed

+56
-8
lines changed

6 files changed

+56
-8
lines changed

code_samples/php/v2.0.0/create_payment.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
"currency" => "EUR",
2121
]),
2222
"end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([
23-
"variable_symbol" => "ORDER123456",
23+
"variable_symbol" => "1",
24+
"specific_symbol" => "2",
25+
"constant_symbol" => "3",
2426
]),
2527
]),
2628
"bank_transfer" => new Tatrapayplus\TatrapayplusApiClient\Model\BankTransfer(),

code_samples/php/v2.0.0/create_payment_pre_authorization.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"currency" => "EUR",
1414
]),
1515
"end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([
16-
"variable_symbol" => "ORDER123456",
16+
"variable_symbol" => "1",
17+
"specific_symbol" => "2",
18+
"constant_symbol" => "3",
1719
]),
1820
]),
1921
"bank_transfer" => new Tatrapayplus\TatrapayplusApiClient\Model\BankTransfer(),

docs/libraries/php/v2.0.0/index.mdx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,31 @@ To be able to use and test payment gateway you need to have **Client ID** and **
44

55
# Installation
66

7-
To install PHP SDK, you need to install `tatrapayplus/tatrapayplus_api_client` library via composer.
7+
To install PHP SDK, you need to install `tatrapayplus/tatrapayplus_api_client` library via composer.\
8+
Inside your `composer.json` file for your project, add new requirement:
9+
10+
```json
11+
{
12+
"name": "project name",
13+
// ...
14+
"require": {
15+
// ...
16+
"tatrapayplus/tatrapayplus_api_client": "2.0.0"
17+
},
18+
// ...
19+
}
20+
```
21+
22+
Afterwards, run command `composer install` to install new dependency.
823

924
# Client initialization
1025

1126
To start working with the API, you need to initialize the TatraPayPlusAPIApi with the following parameters:
1227

1328
```php
29+
<?php
30+
use Tatrapayplus\TatrapayplusApiClient\Api\TatraPayPlusAPIApi;
31+
1432
$tatrapayplus_api = new TatraPayPlusAPIApi(
1533
"your-client-id",
1634
"your-client-secret",

docs/libraries/php/v2.0.0/save_card.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ $initiate_payment_request = new Tatrapayplus\TatrapayplusApiClient\Model\Initiat
2020
"currency" => "EUR",
2121
]),
2222
"end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([
23-
"variable_symbol" => "ORDER123456",
23+
"variable_symbol" => "1",
24+
"specific_symbol" => "2",
25+
"constant_symbol" => "3",
2426
]),
2527
]),
2628
"card_detail" => new Tatrapayplus\TatrapayplusApiClient\Model\CardDetail([
@@ -72,7 +74,9 @@ $initiate_payment_request = new Tatrapayplus\TatrapayplusApiClient\Model\Initiat
7274
"currency" => "EUR",
7375
]),
7476
"end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([
75-
"variable_symbol" => "ORDER123456",
77+
"variable_symbol" => "1",
78+
"specific_symbol" => "2",
79+
"constant_symbol" => "3",
7680
]),
7781
]),
7882
"user_data" => new Tatrapayplus\TatrapayplusApiClient\Model\UserData([

i18n/sk/docusaurus-plugin-content-docs/current/libraries/php/v2.0.0/index.mdx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,31 @@ Aby ste mohli používať a testovať platobnú bránu, potrebujete **Client ID*
44

55
# Inštalácia
66

7-
Na inštaláciu PHP SDK je potrebné nainštalovať knižnicu `tatrapayplus/tatrapayplus_api_client` cez composer.
7+
Na inštaláciu PHP SDK je potrebné nainštalovať `tatrapayplus/tatrapayplus_api_client` cez composer.\
8+
Do súboru `composer.json` pre váš projekt pridajte novú požiadavku:
9+
10+
```json
11+
{
12+
"name": "nazov projektu",
13+
// ...
14+
"require": {
15+
// ...
16+
"tatrapayplus/tatrapayplus_api_client": "2.0.0"
17+
},
18+
// ...
19+
}
20+
```
21+
22+
Následne spustite príkaz `composer install` pre inštaláciu balíka.
823

924
# Vytvorenie API klienta
1025

1126
Pre prácu s API potrebujete inicializovať TatraPayPlusAPIApi s nasledovnými parametrami:
1227

1328
```php
29+
<?php
30+
use Tatrapayplus\TatrapayplusApiClient\Api\TatraPayPlusAPIApi;
31+
1432
$tatrapayplus_api = new TatraPayPlusAPIApi(
1533
"your-client-id",
1634
"your-client-secret",

i18n/sk/docusaurus-plugin-content-docs/current/libraries/php/v2.0.0/save_card.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ $initiate_payment_request = new Tatrapayplus\TatrapayplusApiClient\Model\Initiat
2020
"currency" => "EUR",
2121
]),
2222
"end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([
23-
"variable_symbol" => "ORDER123456",
23+
"variable_symbol" => "1",
24+
"specific_symbol" => "2",
25+
"constant_symbol" => "3",
2426
]),
2527
]),
2628
"card_detail" => new Tatrapayplus\TatrapayplusApiClient\Model\CardDetail([
@@ -72,7 +74,9 @@ $initiate_payment_request = new Tatrapayplus\TatrapayplusApiClient\Model\Initiat
7274
"currency" => "EUR",
7375
]),
7476
"end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([
75-
"variable_symbol" => "ORDER123456",
77+
"variable_symbol" => "1",
78+
"specific_symbol" => "2",
79+
"constant_symbol" => "3",
7680
]),
7781
]),
7882
"user_data" => new Tatrapayplus\TatrapayplusApiClient\Model\UserData([

0 commit comments

Comments
 (0)