Skip to main content

Getting started

To be able to use and test payment gateway you need to have Client ID and Client secret from TB developer portal.

Installation

pip install tatrapayplus-python

Client Initialization

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

from tatrapayplus.client import TBPlusSDK
from tatrapayplus.enums import Mode

client = TBPlusSDK(
"your-client-id", # Client ID
"your-client-secret", # Client secret
mode=Mode.SANDBOX, # Mode you are working with: SANDBOX or PRODUCTION
)

There are 2 supported modes:

  • SANDBOX (default): requests will be sent to SANDBOX (test) environment of gateway
  • PRODUCTION: requests will be sent to PRODUCTION (live) environment of gateway