Integrate with ease and get unbeatable fees and data that helps you grow your business.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.1
- Package version: 0.1.1
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 3.8+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/client-api/barion-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/client-api/barion-python.git
)
Then import the package:
import clientapi_barion
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import clientapi_barion
Execute pytest
to run the tests.
Please follow the installation procedure and then run the following:
import clientapi_barion
from clientapi_barion.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.barion.com
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_barion.Configuration(
host = "https://api.barion.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: PosKeyAuth
configuration.api_key['PosKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['PosKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with clientapi_barion.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clientapi_barion.BarionSmartGatewayApi(api_client)
payment_id = '123e4567-e89b-12d3-a456-426614174001' # str | The identifier of the payment in the Barion system.
try:
# Get Payment State
api_response = api_instance.get_payment_state_v2(payment_id)
print("The response of BarionSmartGatewayApi->get_payment_state_v2:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling BarionSmartGatewayApi->get_payment_state_v2: %s\n" % e)
All URIs are relative to https://api.barion.com
Class | Method | HTTP request | Description |
---|---|---|---|
BarionSmartGatewayApi | get_payment_state_v2 | GET /v2/Payment/GetPaymentState | Get Payment State |
BarionSmartGatewayApi | get_payment_state_v4 | GET /v4/Payment/{PaymentId}/PaymentState | Get the state of a payment |
BarionSmartGatewayApi | payment_cancel_authorization_v2 | POST /v2/Payment/CancelAuthorization | Cancel Authorization of a payment |
BarionSmartGatewayApi | payment_capture_v2 | POST /v2/Payment/Capture | Capture of a payment |
BarionSmartGatewayApi | payment_complete_v2 | POST /v2/Payment/Complete | Complete a payment |
BarionSmartGatewayApi | payment_finish_reservation_v2 | POST /v2/Payment/FinishReservation | Finish a pending reservation |
BarionSmartGatewayApi | payment_start_v2 | POST /v2/Payment/Start | Create a new payment |
BarionSmartGatewayApi | payment_start_with_google_token_v3 | POST /v3/Payment/StartPaymentWithGoogleToken | Create a new payment |
BarionSmartGatewayApi | refund_payment_v2 | POST /v2/Payment/Refund | Execute the refund of a payment |
BarionWalletApi | get_accounts_v2 | GET /v2/Accounts | Get existing accounts of the user |
BarionWalletApi | get_history_v3 | GET /v3/UserHistory/GetHistory | Get User Transaction History |
BarionWalletApi | get_statement_download_v2 | GET /v2/Statement/Download | Download statement file |
BarionWalletApi | transfer_email_v2 | POST /v2/Transfer/Email | Send money to an e-mail address |
BarionWalletApi | withdraw_bank_transfer_v3 | POST /v3/Withdraw/BankTransfer | Initiate Bank Transfer |
- Account
- AccountInfo
- AccountsResponse
- AccountsResponseWithErrorMessages
- Balance
- BankAccountDetails
- BankCard
- BankDetails
- Beneficiary
- BillingAddress
- CancelAuthorizationRequest
- CancelAuthorizationResponse
- CancelAuthorizationResponseWithErrorMessages
- CapturePaymentRequest
- CapturePaymentResponse
- CapturePaymentResponseWithErrorMessages
- DetailedPaymentTransaction
- DetailedPaymentTransactionTransactionType
- Error
- Errors
- FundingInformation
- GetPaymentStateResponse
- GetPaymentStateResponseWithErrorMessages
- GetUserHistoryResponse
- GetUserHistoryResponseWithErrorMessages
- GiftCardPurchase
- Item
- NameInformation
- PayeeTransaction
- PayeeTransactionToFinish
- PayerAccountInformation
- PaymentCompleteRequest
- PaymentCompleteResponse
- PaymentCompleteResponseWithErrorMessages
- PaymentFinishReservationRequest
- PaymentFinishReservationResponse
- PaymentFinishReservationResponseWithErrorMessages
- PaymentStartRequest
- PaymentStartRequestWithGoogleToken
- PaymentStartResponse
- PaymentStartResponseWithErrorMessages
- PaymentStartResponseWithGoogleTokenAndErrorMessages
- PaymentStateResponse
- PaymentStateResponseWithErrorMessages
- PaymentTransaction
- PaymentType
- ProcessedTransaction
- PurchaseInformation
- PurchaseType
- QRCodeSize
- RecipientAddress
- RecipientDetails
- RefundRequest
- RefundResponse
- RefundResponseWithErrorMessages
- RefundedTransaction
- ShippingAddress
- StartPaymentWithGoogleToken
- StartPaymentWithGoogleTokenResponse
- TransactionToFinish
- TransactionToRefund
- TransferEmailAmount
- TransferEmailRequest
- TransferEmailResponse
- TransferEmailResponseWithErrorMessages
- UserHistory
- UserHistoryParticipant
- UserInformation
- WithdrawBankTransferRequest
- WithdrawBankTransferResponse
- WithdrawBankTransferResponseWithErrorMessages
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: x-api-key
- Location: HTTP header
- Type: API key
- API key parameter name: x-pos-key
- Location: HTTP header