File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
-
2
1
# ** Checkout-P2P Python Integration Library**
3
2
4
3
[ ![ 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)
73
72
3.Query a Payment Request
74
73
75
74
``` python
76
-
77
-
78
75
query_response = checkout.query(123456 ) # Replace with your request ID
79
76
80
77
print (" Request Status:" , query_response.status)
@@ -83,13 +80,27 @@ print("Request Status:", query_response.status)
83
80
4.Reverse a Payment
84
81
85
82
``` python
86
-
87
83
# Reverse a transaction. Returns a `ReverseResponse` object.
88
84
reverse_response = checkout.reverse(" internal_reference" )
89
85
90
86
print (" Reverse Status:" , reverse_response.status)
91
87
```
92
88
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
+
93
104
## ** License**
94
105
95
106
This project is licensed under the MIT License. See the [ LICENSE] ( LICENSE.txt ) file for details.
You can’t perform that action at this time.
0 commit comments