Initialize Payment
This service checks whether the required configurations have been completed on the Paynet side and then returns the deeplink_url required for the transaction, along with the encryption_key used to decrypt the encrypted data returned to the customer’s mobile application. To send a request to this service, a mobile session token (session_key) must be used.
Header parameters
Session-KeystringRequired
Mobile session key
Content-TypestringRequiredExample:
Content type.
application/jsonBody
amountnumberOptionalExample:
Amount.
100add_commissionbooleanOptionalExample:
Should the commission be added?
trueinstalmentintegerOptionalExample:
Installment.
0card_holder_phonestringOptionalExample:
Card holder phone.
5XXXXXXXXcard_holder_mailstringOptionalExample:
Card holder mail.
test@paynet.com.trdescriptionstringOptionalExample:
Description.
testreference_nostringOptional
Reference number.
selected_agent_idstringOptional
Selected agent id.
callback_urlstringOptional
Deeplink will take you back to the mobile application.
Responses
200
Successful
application/json
payment_session_idstringOptional
Payment session id.
deeplink_urlstringOptional
Deeplink url.
encryption_keystringOptional
Encryption key.
object_namestringOptional
Object name.
codeintegerOptional
Code.
messagestringOptional
Message.
400
Error
application/json
post/v1/softpos/init_sale_transaction
POST /v1/softpos/init_sale_transaction HTTP/1.1
Host: api.paynet.com.tr
Session-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 203
{
"amount": 100,
"add_commission": true,
"instalment": 0,
"card_holder_phone": "5XXXXXXXX",
"card_holder_mail": "test@paynet.com.tr",
"description": "test",
"reference_no": "",
"selected_agent_id": "",
"callback_url": ""
}{
"payment_session_id": "86D8555052D98CD0",
"deeplink_url": "https://www.paynet.com.tr/?paymentSessionToken=86D87D5052D98CD0",
"encryption_key": "vjvsqwdlrbpssarsbkszollnwbminhsr",
"object_name": "softpos_init_sale_transaction",
"code": 0,
"message": "Successful transaction"
}Last updated
