Skip to content

Commit

Permalink
Merge pull request #31 from andrextor/relase/v0.1.4
Browse files Browse the repository at this point in the history
Relase/v0.1.4
  • Loading branch information
andrextor authored Dec 16, 2024
2 parents f26a216 + 232bd0d commit 30cbbdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Set up your Settings object with the necessary credentials:
```python
from checkout import Checkout, RedirectRequest

# Configuration
checkout = Checkout({
"base_url": "https://checkout-co.placetopay.dev/",
"login": "e3bba31e633c32c48011a4a70ff60497",
Expand All @@ -60,7 +59,6 @@ redirect_request = RedirectRequest(
payment={"reference": "TEST _q", "description": "Test Payment", "amount": {"currency": "COP", "total": 10000}}
)

# This request returns a `RedirectResponse` object containing the process URL.
response = checkout.request(redirect_request)

print("Redirect to:", response.process_url)
Expand All @@ -71,7 +69,6 @@ print("Redirect to:", response.process_url)
```python


# Query a session by request ID. Returns a `RedirectInformation` object.
query_response = checkout.query(123456) # Replace with your request ID

print("Request Status:", query_response.status)
Expand All @@ -89,4 +86,4 @@ print("Reverse Status:", reverse_response.status)

## **License**

This project is licensed under the MIT License. See the [LICENSE](LICENSE.txt) file for details.
This project is licensed under the MIT License. See the [LICENSE](LICENSE.txt) file for details.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "checkout-p2p"
version = "0.1.3"
version = "0.1.4"
description = "Python library for PlaceToPay Checkout integration."
authors = ["Iván Andrés López Gómez <andresgom11012@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 30cbbdd

Please sign in to comment.