Skip to content

Commit 7fb1388

Browse files
committed
Update README.md
1 parent 216c0a2 commit 7fb1388

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# **Checkout-P2P Python Integration Library**
32

43
[![pypi](https://img.shields.io/pypi/v/checkout-p2p.svg)](https://pypi.org/project/checkout-p2p/)
@@ -73,8 +72,6 @@ print("Redirect to:", response.process_url)
7372
3.Query a Payment Request
7473

7574
```python
76-
77-
7875
query_response = checkout.query(123456) # Replace with your request ID
7976

8077
print("Request Status:", query_response.status)
@@ -83,13 +80,27 @@ print("Request Status:", query_response.status)
8380
4.Reverse a Payment
8481

8582
```python
86-
8783
# Reverse a transaction. Returns a `ReverseResponse` object.
8884
reverse_response = checkout.reverse("internal_reference")
8985

9086
print("Reverse Status:", reverse_response.status)
9187
```
9288

89+
5.Invalidate token
90+
91+
```python
92+
invalidate_token_request = {
93+
"locale": "en_US",
94+
"instrument": {"token" : {"token" : "your_token_c5583922eccd6d2061c1b0592b099f04e352a894f37ae51cf1a"}}
95+
}
96+
97+
# invalite token. Returns a `Status` object.
98+
invalidate_response = checkout.invalidate_token(invalidate_token_request)
99+
100+
print("Invalidate Status:", invalidate_response.status)
101+
print("Message:", invalidate_response.message)
102+
```
103+
93104
## **License**
94105

95106
This project is licensed under the MIT License. See the [LICENSE](LICENSE.txt) file for details.

0 commit comments

Comments
 (0)