Skip to main content

sirako-sdk

Public endpoints for third-party merchant integrations. Authenticate every request with the X-API-Key header.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.24.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.10+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import sirako_sdk

Setuptools

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 sirako_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import sirako_sdk
from sirako_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://dev-sirako.fidelity-market.com
# See configuration.py for a list of all supported configuration parameters.
configuration = sirako_sdk.Configuration(
    host = "https://dev-sirako.fidelity-market.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: apiKeyAuth
configuration.api_key['apiKeyAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKeyAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with sirako_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = sirako_sdk.MerchantPayInApi(api_client)
    x_api_key = 'x_api_key_example' # str | 
    payment_id = 'payment_id_example' # str | 

    try:
        # Read a merchant pay-in
        api_response = api_instance.get_payment(x_api_key, payment_id)
        print("The response of MerchantPayInApi->get_payment:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling MerchantPayInApi->get_payment: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://dev-sirako.fidelity-market.com

Class Method HTTP request Description
MerchantPayInApi get_payment GET /api/v1/payments/{paymentId} Read a merchant pay-in
MerchantPayInApi get_payment_options GET /api/v1/payments/options Get available payment operators for a country
MerchantPayInApi initiate POST /api/v1/payments/initiate Initiate a merchant pay-in
MerchantPayInApi submit_otp POST /api/v1/payments/{paymentId}/actions/otp Submit a required OTP action

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)

apiKeyAuth

  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

Author

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sirako_sdk-1.0.0.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sirako_sdk-1.0.0-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file sirako_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: sirako_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for sirako_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bafdac1d711c60ffc7eecc8001e31185548ed6b91161f5696ac5acd21aa4c8b4
MD5 1d952dd1b26abc53029d4a207611acd9
BLAKE2b-256 6dd485f3b4f9b8f5cda714cd9289c9bb789356661d304b93d90a72e5abeea5a6

See more details on using hashes here.

File details

Details for the file sirako_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sirako_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for sirako_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79837d9abc3ca69f21ad32ee08279f4e9a75f8c36898bb9e03e783aa59456c78
MD5 cc8a7392849f88aa0f6ad4c36c89d1dc
BLAKE2b-256 6e9f45e4e25e393fbff08e690bcbf69ba49b459364762751a4522be6400c6bcf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page