|---------------------------------------------------------------|
|Systech Payment API						|
|Systech Digital Limited					|
|V: 1.0.0							|
|---------------------------------------------------------------|

* ARE REQUIRED

Request Method
POST

Request URL
https://payments.systechdigital.com/oauth/token

Request Paramiters
Array(
	* [grant_type] => password,
	* [client_id] => YOUR_ID,
	* [client_secret] => YOUR_SECRET,
	* [username] => YOUR_USERNAME,
	* [password] => YOUR_PASSWORD,
	* [scope] => *,
)

Response success
{
	success : 1,
	error : 0,
	payload : {
		expires_in :
		access_token :
		refresh_token :
	}
}

Request Method
GET

Request URL
https://payments.systechdigital.com/oauth/token-verify

Request Header
Array(
	* [Authorization] => 'Bearer '.YOUR_ACCESS_TOKEN   
)

Response success
{
	success : 1,
	error : 0,
	payload : true
}

/************SSLCOMMERZ API*************/

Request Method
POST

Request URL
https://payments.systechdigital.com/api/v1/get-session

Request Paramiters
Array
(    
	* [success_url] => http://localhost/project/payment/success
	* [fail_url] => http://localhost/project/payment/fail
	* [cancel_url] => http://localhost/project/payment/cancel    
	* [total_amount] => 3000
	[multi_card_name] => //'' for all else visa,master,amex,mobile,internet,citytouch,mobile_w
	[emi_option] => 0
	* [site] => REF_APPLICATION
	* [tran_id] => ABC123456
	* [order_id] => Custom Val 1
	[order_details] => Custom Val 2
	* [cus_name] => Test
	* [cus_email] => test@test.com
	* [cus_add1] => Dhaka
	[cus_add2] => 
	[cus_city] => 
	[cus_state] => 
	[cus_postcode] => 
	[cus_country] => 
	* [cus_phone] => 123456789
	[cus_fax] => 
	[ship_name] => 
	[ship_add1] => 
	[ship_add2] => 
	[ship_city] => 
	[ship_state] => 
	[ship_postcode] => 
	[ship_country] => 
	[sandbox] => 1
	* if sandbox [store_id] => '' 
	* if sandbox [store_passwd] => ''
)

Request Header
Array(
	* [Authorization] => 'Bearer '.YOUR_ACCESS_TOKEN   
)

Response success
{
	success : 1,
	error : 0,
	payload : data
}

Response error
{
	success : 0,
	error : 1,
	payload : {
		code : '403',
		msg : 'Authorization Error'
	}
}

Request Method
POST

Request URL
https://payments.systechdigital.com/api/v1/validate-transection

Request Paramiters
Array
(    
	* [tran_id] => POST TRAN_ID
	* [val_id] => SERVER RESPONSE VAL_ID
	* [amount] => POST AMOUNT
	* [currency] => POST CURRENCY
	* [verify_sign] => SERVER RESPONSE SIGN
	* [verify_key] => SERVER RESPONSE KEY
	* [post_data] => JSON_ENCODE POST DATA	
	[sandbox] => 1
	* if sandbox [store_id] => '' 
	* if sandbox [store_passwd] => ''
)

Request Header
Array(
	* [Authorization] => 'Bearer '.YOUR_ACCESS_TOKEN   
)

Response success
{
	success : 1,
	error : 0,
	payload : Validated
}

/************SSLCOMMERZ API END*************/


/************bKash API*************/

sandbox JS
https://scripts.pay.bka.sh/versions/1.2.0-beta/checkout/bKash-checkout.js

production JS
https://scripts.sandbox.bka.sh/versions/1.2.0-beta/checkout/bKash-checkout-sandbox.js

Request Method
POST

Request URL
https://payments.systechdigital.com/api/v1/bkash/token/grant

Request Paramiters
Array
(    
	* If Sandbox [sandbox] => 1
)

Request Header
Array(
	* [Authorization] => 'Bearer '.YOUR_ACCESS_TOKEN   
)

Response success
{
	success : 1,
	error : 0,
	payload : Token Data
}

Request Method
POST

Request URL
https://payments.systechdigital.com/api/v1/bkash/checkout

Request Paramiters
Array
(    
	* [amount] => 
	* [merchantInvoiceNumber] => 
	* If Sandbox [sandbox] => 1
)

Request Header
Array(
	* [Authorization] => 'Bearer '.YOUR_ACCESS_TOKEN   
)

Response success
{
	success : 1,
	error : 0,
	payload : Checkout Data
}

Request Method
POST

Request URL
https://payments.systechdigital.com/api/v1/bkash/execute

Request Paramiters
Array
(    
	* [paymentID] => 
	* If Sandbox [sandbox] => 1
)

Request Header
Array(
	* [Authorization] => 'Bearer '.YOUR_ACCESS_TOKEN   
)

Response success
{
	success : 1,
	error : 0,
	payload : Execute Data
}

Request Method
POST

Request URL
https://payments.systechdigital.com/api/v1/bkash/search

Request Paramiters
Array
(    
	* [trxID] => 
	* If Sandbox [sandbox] => 1
)

Request Header
Array(
	* [Authorization] => 'Bearer '.YOUR_ACCESS_TOKEN   
)

Response success
{
	success : 1,
	error : 0,
	payload : Transection Data
}

Request Method
POST

Request URL
https://payments.systechdigital.com/api/v1/bkash/query

Request Paramiters
Array
(    
	* [paymentID] => 
	* If Sandbox [sandbox] => 1
)

Request Header
Array(
	* [Authorization] => 'Bearer '.YOUR_ACCESS_TOKEN   
)

Response success
{
	success : 1,
	error : 0,
	payload : Payment Data
}

/************bKash API END*************/