Session status information
A new way of reporting session status has been introduced. Session status is now provided based on two attributes:
Stage:
Authentication (receiving access token) - SCA phase
Accounts - retrieving a list of consented PSU accounts from ASPSP
Transactions - retrieving a list of transactions for consented PSU accounts from ASPSP
TransactionDetails - retrieving details of transactions for consented PSU accounts from ASPSP
Status:
Initiated - event send to queue
InProgress - the event has been consumed by dedicated of connector
Finished - connector provided a response after successful execution of API call(s)
Failed- connector provided a response after unsuccessful execution of API call(s) (one or more tasks has been executed with errors)
AuthorizationFailed - access token has been rejected when accessing API
In addition, for stages Accounts and Transactions a number of accounts and transactions is provided: e.g. 2/3 ( 2 of 3 accounts were aggregated)
3 new endpoints are available
/api/session/status-> current stage and its status
/api/session/{stage}/status -> status of given stage
/api/session/status/details -> session details
Session status callback
An alternative method for using session polling.
The following JSON can be provided to registered callback address:
|
Callback can be triggered for each change of stage/status values.
Session status callback with list of accounts
When stage=Accounts is completed, the list of retrieved accounts will be provided to callback (as "details")
|
Callback can be triggered for each change of stage/status values.
Session status callback with summary of first transaction pages (for all transaction statuses)
For every transaction status, when the first page with transactions is retrieved, the callback will be registered.
|
PIS Callback
After the initiated payment the response from the callback looks as following:
|
Status is from the list:
public enum PaymentStatusEnum
{
Created = 1,
InProgress = 2,
Completed = 3,
Rejected = 4,
NotSupported = 5,
Cancelled = 6,
Expired = 7
}