Upload 1.5.0 version

Upload docs
This commit is contained in:
Teleport
2023-05-08 21:43:58 +03:00
parent 852a407ceb
commit 6b771f8925
22 changed files with 676 additions and 367 deletions

View File

@@ -0,0 +1,19 @@
import json
import pyspw
# Init library
api = pyspw.SpApi(card_id='card_id',
card_token='card_token')
# Data received from webhook
webhook_body = {
"payer": "Nakke_",
"amount": 10,
"data": "brax10"
}
X_Body_Hash = "fba3046f2800197d8829556bdf2d04bf61a307d4ede31eb37fb4078d21e24d3e"
# Verify
print(api.check_webhook(json.dumps(webhook_body), X_Body_Hash)) # True or False