Payments

Getting Payment URL

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
}
After creating body, you must encode your Body with JWT(Json Web Token). You must send this Token with Authorization Bearer to endpoint.
JWT Header:

  {
	"alg": "HS512",
	"typ": "JWT"
  }
		

Encoded Body

eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9. eyJzaWQiOiI0MjkiLCJzZXNzaW9uaWQiOiJ4eC0xMjMiLCJyZXR1cm51cmwiOiJodHRwczpcL1wvZXhhbXBsZS5jb20iLCJ1c2VybmFtZSI6Impkb2UiLCJhbW91bnQiOjIwMCwiZnVsbG5hbWUiOiJKb2huIERvZSIsInR5cGUiOiIifQ. aoR6TpERq7p3YVwM0tcC_do2KTSQyLuvXhxzUoN_mMXOkA8zGkKzXw6w5FFlOHjWj-nWMInha2VjnTVYe_3fUQ

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

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
}
After creating body, you must encode your Body with JWT. You must send this Token with Authorization Bearer to endpoint.
JWT Header:

  {
	"alg": "HS512",
	"typ": "JWT"
  }
		

Encoded Body

eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9. eyJzaWQiOiI0MjkiLCJzZXNzaW9uaWQiOiJ4eC0xMjMiLCJ3YWxsZXRubyI6IjEzODE4NzY5NTQiLCJ1c2VybmFtZSI6Impkb2UiLCJhbW91bnQiOjIwMCwiZnVsbG5hbWUiOiJKb2huIERvZSIsInR5cGUiOiIiLCJiYW5rIjoiIn0. g_Ia5p6dZ1am0cgwGy3gSecSXV_QgmqWzDQb9Y-MghoWm35pwf6_atL192P5M1yNUetAbCk3pIYGVHAswQnqiQ

Request:
Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiI0MjkiLCJzZXNzaW9uaWQiOiJ4eC0xMjMiLCJ3YWxsZXRubyI6IjEzODE4NzY5NTQiLCJ1c2VybmFtZSI6Impkb2UiLCJhbW91bnQiOjIwMCwiZnVsbG5hbWUiOiJKb2huIERvZSIsInR5cGUiOiIiLCJiYW5rIjoiIn0.g_Ia5p6dZ1am0cgwGy3gSecSXV_QgmqWzDQb9Y-MghoWm35pwf6_atL192P5M1yNUetAbCk3pIYGVHAswQnqiQ
Response(JSON):

  {
	"status": "ok"
  }
			

Callbacks

Payment/Withdraw Callbacks

Endpoint URL(GET)

$yourEndpoint/?token={token}

Request Token(in Authorization and GET Params):

Encoded Body

eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9. eyJpZCI6IjIwMzY3Iiwic2lkIjoiNDI5Iiwic3RhdHVzIjoiMSIsInJlcXVlc3RpZCI6Inh4LTEyMyIsInVzZXJuYW1lIjoiamRvZSIsImFtb3VudCI6MTAwLCJmdWxsbmFtZSI6IkpvaG4gRG9lIiwiaXAiOiIyMTYuNTguMjE2LjE2NCIsImRhdGUiOiIyMDIyLTExLTAxIDEzOjQyOjIxIiwidHlwZSI6IiIsInR0eXBlIjoiZGVwb3NpdCJ9. oeRtIjCFshYDBxEiuwuU1BWcS5txfL6Ms7QMiIxSrXb1O6iF8wQPN_hllEyD4uB8hFTr_xbyKgGLngE6RpoenA

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)
}