Advance Payment

The API endpoint to make an advance payment is POST /Smart/Transaction/STX_xxx/start/prepaid. There is no prior authorization needed.

Example Request
POST /api/v2/Smart/Transactions/STX_xxx/start/prepaid HTTP/1.1
Host: connect-testing.secupay-ag.de
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Content-Type: application/json
Accept: application/json
 
{
}

If everything is fine, the API responds with 200 OK:

Example Response
HTTP/1.1 200 OK
Content-Type: application/json
...
{
"object": "smart.transactions",
"id": "STX_33PXAW2YN2NJTPM5KPGMK7QF5PBVA2",
// ...
"transactions": [
{
"object": "payment.transactions",
"id": "PCI_FDBREW9ZS7P6FTN4ZY2ATC6NK0QWO7",
// ...
}
],
"created": "2020-03-27T10:55:23+01:00",
"status": "pending",
// ...
"application_context": {
"return_urls": {
"url_success": "https://www.example.org/SUCCESS",
"url_error": "https://www.example.org/FAILURE",
"url_abort": "https://www.example.org/FAILURE"
}
},
"checkout_links": null,
"payment_links": {
"creditcard": null
"debit": null
"invoice": null
"prepaid": null
"general": null
}
}

The Smart Transaction will change to status pending to signalize that we still wait for the payment. When the payment has arrived, it switches to ok (intent sale or authorization), and you can deliver.