Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"type":"object",
"$schema":"http://json-schema.org/draft-04/schema#",
"description":"Pay cvv model",
"title": "PayCvv",
"required":[
"merchant_id",
"order_number",
"amount",
"currency",
"client_secret",
"auth_token",
"client",
"pm_alias",
"digest"
],
"properties":{
"merchant_id":{
"type":"string",
"minLength":12,
"maxLength":12
},
"order_info":{
"type":"string",
"minLength":3,
"maxLength":100,
"description":"short description of order being processed"
},
"order_number":{
"type":"string",
"minLength":1,
"maxLength":40,
"description":"unique identifier"
},
"sign":{
"type":"string"
},
"amount":{
"type":"string",
"description":"amount is in minor units, ie. 10.24 USD is sent as 1024"
},
"currency":{
"type":"string",
"minLength":3,
"maxLength":3,
"enum":[
"USD",
"EUR",
"BAM",
"HRK"
]
},
"client_secret":{
"type":"string"
},
"auth_token": {
"type": "string",
"minLength": 32,
"maxLength": 32
},
"client":{
"type": "string"
},
"pm_alias":{
"type": "string",
"minLength": 40,
"maxLength": 100
},
"digest":{
"type": "string"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment