From 032d72d33cdaadd7e96312804f6a2abfd861121e Mon Sep 17 00:00:00 2001 From: pankratov Date: Tue, 4 Mar 2025 11:40:19 +0200 Subject: [PATCH 1/4] feat(TW-1423): update readme --- README.md | 101 +++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 88 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b8619a0..d6aa8c3 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,106 @@ +# Solidgate API + [![PyPI version](https://badge.fury.io/py/solidgate-sdk.svg)](https://badge.fury.io/py/solidgate-sdk) -# SolidGate API -This library provides basic API options of SolidGate payment gateway. +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 containsTable 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 -- Packages: requests -- SolidGate account. If you don’t have this you can request it by contacting sales@solidgate.com +* **Python**: 3.7 or later +* **Packages**: `requests` library +* **Solidgate account**: Public and secret key (request via sales@solidgate.com) + +
## Installation -Use pip command: ```pip3 install solidgate-card-sdk``` +To start using the Python SDK: + +1. Ensure you have your public and secret key. +2. Install the SDK in your project using pip: + ```bash + 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 -Create a class instance of the 'ApiClient' class. +### 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's provided at the moment of merchant registration. -## Documentation -* https://docs.solidgate.com +- `public_key` - unique merchant identification +- `secret_key` - secret code for request signature, it is provided at the moment of merchant registration + +### Resign form + +```python +response = client.form_resign({'order_id': '12345'}) +``` + +
+ +## Errors + +Handle errors. -## Support -If you have any problems, questions or suggestions send your inquiry to info@solidgate.com. +```python +try: + response = client.charge({...}) +except Exception as e: + print(e) +``` \ No newline at end of file From f80bb2fd0ac1c5fbcb0738ddd2522331a7fea318 Mon Sep 17 00:00:00 2001 From: pankratov Date: Fri, 21 Nov 2025 11:17:47 +0200 Subject: [PATCH 2/4] feat(TW-2260): update readme with support and pull request links --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d6aa8c3..bff0a16 100644 --- a/README.md +++ b/README.md @@ -103,4 +103,9 @@ try: response = client.charge({...}) except Exception as e: print(e) -``` \ No newline at end of file +``` + +--- + +Looking for help? Contact us
+Want to contribute? Submit a pull request \ No newline at end of file From c2a8f4f84d79ca03ddb6b05a398cdc614736b0b7 Mon Sep 17 00:00:00 2001 From: Mykhailo Dziuba Date: Thu, 26 Mar 2026 15:17:28 +0100 Subject: [PATCH 3/4] fix(DEV-66185): fix signature generation for resign forms --- solidgate/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solidgate/api_client.py b/solidgate/api_client.py index dba6e4a..4b752a1 100644 --- a/solidgate/api_client.py +++ b/solidgate/api_client.py @@ -76,7 +76,7 @@ def form_update(self, attributes: dict) -> FormUpdateDTO: def form_resign(self, attributes: dict) -> FormInitDTO: resign_intent = AESCipher(self.__private_key).encrypt(self.__convert_request_attributes_to_str(attributes)) - signature = self.__generate_signature(payment_intent) + signature = self.__generate_signature(resign_intent) form_resign_dto = FormResignDTO(resign_intent=resign_intent, publicKey=self.__merchant_id, signature=signature) return form_resign_dto From 5ecdea86f78688164a104e89bff0a4de03201e85 Mon Sep 17 00:00:00 2001 From: Mykhailo Dziuba Date: Thu, 26 Mar 2026 15:21:18 +0100 Subject: [PATCH 4/4] fix(DEV-66185): bump fix version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9ae2c6f..cf68d22 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="solidgate-sdk", - version="0.3.1", + version="0.3.2", author="SolidGate", author_email="info@solidgate.com", description="Python API SDK for SolidGate payment gateway",