Payments
Getting Payment URL
Endpoint URL(GET)
Request Body(JSON):
{
"sid": "429", // Your Site ID
"sessionid": "xx-123", //Transaction ID On Your Side(Must Be Unique)
"returnurl": "https://example.com", //Users will be redirected to this URL.
"username": "jdoe", //User's Username
"amount": 200, //Process Amount
"fullname": "John Doe", //User's Fullname
"type": "" //Payment Method
}
JWT Header:
{
"alg": "HS512",
"typ": "JWT"
}
Encoded Body
base64UrlEncode(JWT Header) . base64UrlEncode(Request Body) . SHA512(base64UrlEncode(header) + "." + base64UrlEncode(payload) , $secretkey)
Request:
Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiI0MjkiLCJzZXNzaW9uaWQiOiJ4eC0xMjMiLCJyZXR1cm51cmwiOiJodHRwczpcL1wvZXhhbXBsZS5jb20iLCJ1c2VybmFtZSI6Impkb2UiLCJhbW91bnQiOjIwMCwiZnVsbG5hbWUiOiJKb2huIERvZSIsInR5cGUiOiIifQ.aoR6TpERq7p3YVwM0tcC_do2KTSQyLuvXhxzUoN_mMXOkA8zGkKzXw6w5FFlOHjWj-nWMInha2VjnTVYe_3fUQ
Encoded Response:
{
"token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI5MzQ4MCIsInVybCI6Imh0dHBzOlwvXC9penBhcmEudHVyYm95YXRpcmltLmNvbVwvaW5kZXgucGhwP2JpZD0yOTM0ODAmdG9rZW49NjhmYTU2NzY4OCZ0eXBlPW0ifQ.MDelX4_9nb6G5S39nmczWWK16nxDS8bj43ogm5E0rgAr9VneSstVOzWO2UvoJ18m6MiH0Kx5LczVbqeH1Vm25Q"
}
Decoded Response:
{
"id": "293480",
"url": "https://izpara.turboyatirim.com/index.php?bid=293480&token=68fa567688&type=m"
}
Withdraws
Sending Withdraws
Endpoint URL(GET)
Request Body(JSON):
{
"sid": "429", // Your Site ID
"sessionid": "xx-123", //Transaction ID On Your Side(Must Be Unique)
"walletno": "1381876954", //User's Wallet Number
"username": "jdoe", //User's Username
"amount": 200, //Withdraw Amount
"fullname": "John Doe", //User's Fullname
"type": "", //Withdraw Type
"bank": "" //Fill Empty
}
JWT Header:
{
"alg": "HS512",
"typ": "JWT"
}
Encoded Body
Request:
Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiI0MjkiLCJzZXNzaW9uaWQiOiJ4eC0xMjMiLCJ3YWxsZXRubyI6IjEzODE4NzY5NTQiLCJ1c2VybmFtZSI6Impkb2UiLCJhbW91bnQiOjIwMCwiZnVsbG5hbWUiOiJKb2huIERvZSIsInR5cGUiOiIiLCJiYW5rIjoiIn0.g_Ia5p6dZ1am0cgwGy3gSecSXV_QgmqWzDQb9Y-MghoWm35pwf6_atL192P5M1yNUetAbCk3pIYGVHAswQnqiQ
Response(JSON):
{
"status": "ok"
}
Callbacks
Payment/Withdraw Callbacks
Endpoint URL(GET)
Request Token(in Authorization and GET Params):
Encoded Body
Request Body(JSON):
{
"id": "20367", // Process ID
"sid": "429", // Your Site ID
"status": "1", // Transaction Status( 1 Success - 0 Unsuccess)
"requestid": "xx-123", //Your Transaction ID
"username": "jdoe", //User's Username
"amount": "100", //Process Amount
"fullname": "John Doe", //User's Fullname
"ip": "216.58.216.164", //User's IP Address
"date": "2022-11-01 13:42:21", //Transaction Date
"type": "", //Transaction Method
"ttype": "deposit" //Transaction Type(deposit or withdraw)
}