-
Notifications
You must be signed in to change notification settings - Fork 1
Transaction
Lars Westermann edited this page Jan 30, 2020
·
3 revisions
Authorize by bar-/qr-code
{
"type": "barcode",
"code": "0000000"
}
Authorize by nfc-card
{
"type": "nfc",
"id": "00-00-00-00:00-00-00-00-00-00"
}
Authorize by nfc-card with challenge-response
{
"type": "nfc-secret",
"id": "00-00-00-00:00-00-00-00-00-00",
"challenge": "<<challenge from server>>",
"response": "<<calculated response>>"
}
Request an auth token for a payment
{
"amount": 420,
"method": <<Authentication>>
}
Authroization successful
{
"type": "authorized",
"token": "<<auth token>>"
}
nfc card needs challenge-response authentication
{
"type": "authentication-needed",
"id": "00-00-00-00:00-00-00-00-00-00",
"key": "<<encryption key for nfc card>>",
"challenge": "<<challenge from server>>"
}
Request a payment with the given auth token
{
"amount": 420,
"taken": "<<auth token>>",
"products": {
"<<product-id>>": 1
}
}
{
"account": <<Account>>,
"transaction": <<Transaction>>
}