Skip to main content

Python API SDK for SolidGate payment gateway

Project description

Solidgate API

PyPI version

Python SDK provides API options for integrating Solidgate’s payment orchestrator into your Python applications.

Check our

Structure

SDK for Python contains Table of contents
  • solidgate/ – main library source code for development
    • __init__.py – initializes the SDK package for importing
    • api_client.py – main file for API integration and HTTP request handling
    • encryption.py – library for encryption-related operations
    • model.py – defines data structures for payment attributes and responses
  • setup.py – script for managing dependencies and library imports
Requirements
Installation
Usage
Errors

Requirements

  • Python: 3.7 or later
  • Packages: requests library
  • Solidgate account: Public and secret key (request via sales@solidgate.com)

Installation

To start using the Python SDK:

  1. Ensure you have your public and secret key.
  2. Install the SDK in your project using pip:
    pip install solidgate-card-sdk
    
  3. Import the classes into your project:
    from solidgate import ApiClient
    client = ApiClient(public_key='YourMerchantId', secret_key='YourPrivateKey')
    
  4. Use test credentials for integration testing. After successful testing, switch to production credentials.

Usage

Charge a payment

Create a class instance of the ApiClient class.

from solidgate import ApiClient

client = ApiClient(public_key, secret_key)
  • public_key - unique merchant identification
  • secret_key - secret code for request signature, it is provided at the moment of merchant registration

Resign form

response = client.form_resign({'order_id': '12345'})

Errors

Handle errors.

try:
    response = client.charge({...})
except Exception as e:
    print(e)

Looking for help? Contact us
Want to contribute? Submit a pull request

Project details


Download files

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

Source Distribution

solidgate_sdk-0.3.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

solidgate_sdk-0.3.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file solidgate_sdk-0.3.2.tar.gz.

File metadata

  • Download URL: solidgate_sdk-0.3.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for solidgate_sdk-0.3.2.tar.gz
Algorithm Hash digest
SHA256 7768b212570a5e869eaa73429bf33d7dbbaf8f3f7dffac6a0a1563e5bd9a10a4
MD5 3e247b847c265e1f8fca0e7e48949982
BLAKE2b-256 0e06876ef2ead068c64b56e8de36fa2723eaa4ed1aae07c5c86b6f9a04d45e44

See more details on using hashes here.

File details

Details for the file solidgate_sdk-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: solidgate_sdk-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for solidgate_sdk-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6cfbf4e14a342f4502ba3dd67c4bcdc5096d35328f8b56656e4114e23cf609fa
MD5 d909b32beba919a177b3781b4f8651e4
BLAKE2b-256 ae69c21d6daa9280910183b4f603c3faec48d96680151079719b728baac478b5

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