Solidgate API
Python SDK provides API options for integrating Solidgate’s payment orchestrator into your Python applications.
Check our
- Payment guide to understand business value better
- API Reference to find more examples of usage
Structure
| SDK for Python contains | Table of contents |
|---|---|
|
Requirements Installation Usage Errors |
Requirements
- Python: 3.7 or later
- Packages:
requestslibrary - Solidgate account: Public and secret key (request via sales@solidgate.com)
Installation
To start using the Python SDK:
- Ensure you have your public and secret key.
- Install the SDK in your project using pip:
pip install solidgate-card-sdk
- Import the classes into your project:
from solidgate import ApiClient client = ApiClient(public_key='YourMerchantId', secret_key='YourPrivateKey') - 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 identificationsecret_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
Metadata
Release files for solidgate-sdk 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| solidgate_sdk-0.4.0.tar.gz | 5.2 kB | Without provenance | Details for solidgate_sdk-0.4.0.tar.gz |
Release files / solidgate_sdk-0.4.0.tar.gz
| Download URL | solidgate_sdk-0.4.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d3b5294373008737bdac393a27c12400729b430efec09ba2709ae044ac0cced
|
|
BLAKE2b-256 checksum How to use checksums |
e4637fe1fe627096c5d87f8f9eb1c2dc180c377ee29ba7c2b6a31e2fb3c5e425
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for solidgate-sdk 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.