Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
07a3681
triv: #23799 wip: python documentation
Apr 9, 2025
ae6f403
triv: #23799 wip: python documentation - added chargeback and save ca…
Apr 9, 2025
125391b
triv: #23799 wip: python documentation - added preuthorization, updat…
Apr 9, 2025
727a300
triv: #23799 wip: python documentation - added direct payment section
Apr 9, 2025
6df0782
triv: #23799 added cancel payment section
Apr 10, 2025
b297a7e
triv: #23799 code samples and appearance section
Apr 10, 2025
9569e27
triv: #23799 added logger section
Apr 10, 2025
d954799
triv: #23799 moved redirect uri parameter from client initialization,…
Apr 11, 2025
db22d20
triv: #23799 moved redirect uri parameter from client initialization,…
Apr 11, 2025
ceec583
triv: #23799 added error handling section
Apr 11, 2025
dfbb0f4
triv: #23799 added error handling section
Apr 11, 2025
a7f1e14
Merge branch 'main' of github.com:SmartBase-SK/tatrapayplus-docs into…
Apr 14, 2025
dc35231
triv: #23799 added full payment to create payment code example
Apr 17, 2025
1cef040
triv: #23799 added ip_address as parameter to create_payment
Apr 17, 2025
5b3a532
triv: #23799 renamed simple statuses
Apr 17, 2025
05d4e4f
triv: #23799 moved base_url from client initialization added mode par…
Apr 22, 2025
47199ca
triv: #23799 added node logging documentation
Apr 22, 2025
97d172e
triv: #23799 install command
Apr 28, 2025
a13a7be
Merge branch 'main' of github.com:SmartBase-SK/tatrapayplus-docs into…
Apr 28, 2025
d80587b
triv: #23799 renamed client to TBPlusSDK
Apr 30, 2025
435c1ad
triv: #23799 added simple status mapping info
Apr 30, 2025
7396ec1
triv: #23799 added simple status mapping info
Apr 30, 2025
dee0a59
Merge branch 'main' of github.com:SmartBase-SK/tatrapayplus-docs into…
Apr 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code_samples/python/v1.0.0/cancel_payment.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret"
)
Expand Down
4 changes: 2 additions & 2 deletions code_samples/python/v1.0.0/chargeback.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK
from tatrapayplus.models import *

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK
from tatrapayplus.models import *

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret"
)
Expand Down
4 changes: 2 additions & 2 deletions code_samples/python/v1.0.0/create_payment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK
from tatrapayplus.models import *

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret",
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK
from tatrapayplus.models import *

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret",
)
Expand Down
4 changes: 2 additions & 2 deletions code_samples/python/v1.0.0/get_access_token.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret",
)
Expand Down
4 changes: 2 additions & 2 deletions code_samples/python/v1.0.0/get_available_payment_methods.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tatrapayplus import TatrapayPlusClient, PaymentMethod
from tatrapayplus import TBPlusSDK, PaymentMethod

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret",
)
Expand Down
4 changes: 2 additions & 2 deletions code_samples/python/v1.0.0/get_payment_status.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret",
)
Expand Down
4 changes: 2 additions & 2 deletions code_samples/python/v1.0.0/set_colors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK
from tatrapayplus.models import *

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret"
)
Expand Down
4 changes: 2 additions & 2 deletions code_samples/python/v1.0.0/set_logo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK
from tatrapayplus.models import *

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret"
)
Expand Down
4 changes: 2 additions & 2 deletions code_samples/python/v1.0.0/update_payment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK
from tatrapayplus.models import *

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id",
"your-client-secret"
)
Expand Down
11 changes: 10 additions & 1 deletion docs/libraries/node/v1.0.0/process_payment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,16 @@ import getPaymentStatus from '!!raw-loader!@site/code_samples/node/v1.0.0/getPay

<CodeBlock language="jsx">{getPaymentStatus}</CodeBlock>

Result includes a `simpleStatus` attribute that can have one of three values: `AUTHORIZED`,`CAPTURE`,`PENDING` or `REJECTED`.
Result includes a `simpleStatus` attribute that can have one of three values: `AUTHORIZED`, `CAPTURE` or `REJECTED`.

| Payment Method | CAPTURE | REJECTED | AUTHORIZED |
|----------------|-----------------------------------------|----------------------|----------------------|
| QR_PAY | ACSC, ACCC | CANC, RJCT | |
| BANK_TRANSFER | ACSC, ACCC | CANC, RJCT | |
| PAY_LATER | LOAN_APPLICATION_FINISHED, LOAN_DISBURSED | CANCELED, EXPIRED | |
| CARD_PAY | OK, CB | FAIL | PA |
| DIRECT_API | OK, CB | FAIL | |

Your implementation should take the appropriate action based on the value of `simpleStatus`.

`data` attribute contains all the information based on structure described in [API reference](/docs/api/get-payment-intent-status).
Expand Down
2 changes: 1 addition & 1 deletion docs/libraries/python/v1.0.0/create_payment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import createPayment from '!!raw-loader!@site/code_samples/python/v1.0.0/create_

# Create Payment

To create a payment using the Python SDK, call the `TatrapayPlusClient.create_payment()` method.
To create a payment using the Python SDK, call the `TBPlusSDK.create_payment()` method.

<details>
<summary>Click to see example for all payment methods</summary>
Expand Down
2 changes: 1 addition & 1 deletion docs/libraries/python/v1.0.0/errors_handling.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Handling errors

When using the `TatrapayPlusClient`, all API requests are wrapped with internal error handling logic. If the API returns an error, a custom exception **`TatrapayPlusApiException`** is raised. This allows you to catch and respond to failures in a structured way.
When using the `TBPlusSDK`, all API requests are wrapped with internal error handling logic. If the API returns an error, a custom exception **`TatrapayPlusApiException`** is raised. This allows you to catch and respond to failures in a structured way.

## Basic usage

Expand Down
6 changes: 3 additions & 3 deletions docs/libraries/python/v1.0.0/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ pip install tatrapayplus-python
```
# Client Initialization

To start working with the API, you need to initialize the `TatrapayPlusClient` with the following parameters:
To start working with the API, you need to initialize the `TBPlusSDK` with the following parameters:

```python
from tatrapayplus import TatrapayPlusClient
from tatrapayplus import TBPlusSDK
from tatrapayplus.enums import Mode

client = TatrapayPlusClient(
client = TBPlusSDK(
"your-client-id", # Client ID
"your-client-secret", # Client secret
mode=Mode.SANDBOX, # Mode you are working with: SANDBOX or PRODUCTION
Expand Down
6 changes: 3 additions & 3 deletions docs/libraries/python/v1.0.0/logging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from '@theme/TabItem';

# TatrapayPlusLogger

The `TatrapayPlusLogger` is a simple and customizable HTTP logger for the `TatrapayPlusClient`.
The `TatrapayPlusLogger` is a simple and customizable HTTP logger for the `TBPlusSDK`.
It helps you debug API calls by logging outgoing requests and incoming responses, while safely masking sensitive data.

---
Expand Down Expand Up @@ -54,11 +54,11 @@ class FileLogger(TatrapayPlusLogger):
### Step 2: Inject the Logger into the Client

```python
from tatrapayplus.client import TatrapayPlusClient
from tatrapayplus.client import TBPlusSDK

logger = ConsoleLogger()

client = TatrapayPlusClient(
client = TBPlusSDK(
client_id="your-client-id",
client_secret="your-client-secret",
redirect_uri="https://yourapp.com/redirect",
Expand Down
10 changes: 9 additions & 1 deletion docs/libraries/python/v1.0.0/process_payment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ import getPaymentStatus from '!!raw-loader!@site/code_samples/python/v1.0.0/get_

<CodeBlock language="python">{getPaymentStatus}</CodeBlock>

Result includes a `simple_status` attribute that can have one of three values: `ACCEPTED`, `PENDING`, or `REJECTED`.
Result includes a `simple_status` attribute that can have one of three values: `CAPTURE`, `AUTHORIZED`, or `REJECTED`.
| Payment Method | CAPTURE | REJECTED | AUTHORIZED |
|----------------|-----------------------------------------|----------------------|----------------------|
| QR_PAY | ACSC, ACCC | CANC, RJCT | |
| BANK_TRANSFER | ACSC, ACCC | CANC, RJCT | |
| PAY_LATER | LOAN_APPLICATION_FINISHED, LOAN_DISBURSED | CANCELED, EXPIRED | |
| CARD_PAY | OK, CB | FAIL | PA |
| DIRECT_API | OK, CB | FAIL | |

Your implementation should take the appropriate action based on the value of `simple_status`.

`data` attribute contains all the information based on structure described in [API reference](/docs/api/get-payment-intent-status).
Expand Down