Skip to content

Instantly share code, notes, and snippets.

@jasminsuljic
Last active March 22, 2017 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasminsuljic/ec63e345dd7a39248f5cdd9d45130529 to your computer and use it in GitHub Desktop.
Save jasminsuljic/ec63e345dd7a39248f5cdd9d45130529 to your computer and use it in GitHub Desktop.
{
"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