diff --git a/code_samples/php/v2.0.0/create_payment.php b/code_samples/php/v2.0.0/create_payment.php index 0b1c994..8bd5a9f 100644 --- a/code_samples/php/v2.0.0/create_payment.php +++ b/code_samples/php/v2.0.0/create_payment.php @@ -20,7 +20,9 @@ "currency" => "EUR", ]), "end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([ - "variable_symbol" => "ORDER123456", + "variable_symbol" => "1", + "specific_symbol" => "2", + "constant_symbol" => "3", ]), ]), "bank_transfer" => new Tatrapayplus\TatrapayplusApiClient\Model\BankTransfer(), diff --git a/code_samples/php/v2.0.0/create_payment_pre_authorization.php b/code_samples/php/v2.0.0/create_payment_pre_authorization.php index f9a8de5..1d987db 100644 --- a/code_samples/php/v2.0.0/create_payment_pre_authorization.php +++ b/code_samples/php/v2.0.0/create_payment_pre_authorization.php @@ -13,7 +13,9 @@ "currency" => "EUR", ]), "end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([ - "variable_symbol" => "ORDER123456", + "variable_symbol" => "1", + "specific_symbol" => "2", + "constant_symbol" => "3", ]), ]), "bank_transfer" => new Tatrapayplus\TatrapayplusApiClient\Model\BankTransfer(), diff --git a/docs/libraries/php/v2.0.0/index.mdx b/docs/libraries/php/v2.0.0/index.mdx index fc904e1..f5cbbfa 100644 --- a/docs/libraries/php/v2.0.0/index.mdx +++ b/docs/libraries/php/v2.0.0/index.mdx @@ -4,13 +4,31 @@ To be able to use and test payment gateway you need to have **Client ID** and ** # Installation -To install PHP SDK, you need to install `tatrapayplus/tatrapayplus_api_client` library via composer. +To install PHP SDK, you need to install `tatrapayplus/tatrapayplus_api_client` library via composer.\ +Inside your `composer.json` file for your project, add new requirement: + +```json +{ + "name": "project name", + // ... + "require": { + // ... + "tatrapayplus/tatrapayplus_api_client": "2.0.0" + }, + // ... +} +``` + +Afterwards, run command `composer install` to install new dependency. # Client initialization To start working with the API, you need to initialize the TatraPayPlusAPIApi with the following parameters: ```php + "EUR", ]), "end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([ - "variable_symbol" => "ORDER123456", + "variable_symbol" => "1", + "specific_symbol" => "2", + "constant_symbol" => "3", ]), ]), "card_detail" => new Tatrapayplus\TatrapayplusApiClient\Model\CardDetail([ @@ -72,7 +74,9 @@ $initiate_payment_request = new Tatrapayplus\TatrapayplusApiClient\Model\Initiat "currency" => "EUR", ]), "end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([ - "variable_symbol" => "ORDER123456", + "variable_symbol" => "1", + "specific_symbol" => "2", + "constant_symbol" => "3", ]), ]), "user_data" => new Tatrapayplus\TatrapayplusApiClient\Model\UserData([ diff --git a/i18n/sk/docusaurus-plugin-content-docs/current/libraries/php/v2.0.0/index.mdx b/i18n/sk/docusaurus-plugin-content-docs/current/libraries/php/v2.0.0/index.mdx index 54edac3..40d9d2d 100644 --- a/i18n/sk/docusaurus-plugin-content-docs/current/libraries/php/v2.0.0/index.mdx +++ b/i18n/sk/docusaurus-plugin-content-docs/current/libraries/php/v2.0.0/index.mdx @@ -4,13 +4,31 @@ Aby ste mohli používať a testovať platobnú bránu, potrebujete **Client ID* # Inštalácia -Na inštaláciu PHP SDK je potrebné nainštalovať knižnicu `tatrapayplus/tatrapayplus_api_client` cez composer. +Na inštaláciu PHP SDK je potrebné nainštalovať `tatrapayplus/tatrapayplus_api_client` cez composer.\ +Do súboru `composer.json` pre váš projekt pridajte novú požiadavku: + +```json +{ + "name": "nazov projektu", + // ... + "require": { + // ... + "tatrapayplus/tatrapayplus_api_client": "2.0.0" + }, + // ... +} +``` + +Následne spustite príkaz `composer install` pre inštaláciu balíka. # Vytvorenie API klienta Pre prácu s API potrebujete inicializovať TatraPayPlusAPIApi s nasledovnými parametrami: ```php + "EUR", ]), "end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([ - "variable_symbol" => "ORDER123456", + "variable_symbol" => "1", + "specific_symbol" => "2", + "constant_symbol" => "3", ]), ]), "card_detail" => new Tatrapayplus\TatrapayplusApiClient\Model\CardDetail([ @@ -72,7 +74,9 @@ $initiate_payment_request = new Tatrapayplus\TatrapayplusApiClient\Model\Initiat "currency" => "EUR", ]), "end_to_end" => new Tatrapayplus\TatrapayplusApiClient\Model\E2e([ - "variable_symbol" => "ORDER123456", + "variable_symbol" => "1", + "specific_symbol" => "2", + "constant_symbol" => "3", ]), ]), "user_data" => new Tatrapayplus\TatrapayplusApiClient\Model\UserData([