post https://rs-te.mybankpayments.eu/mybank-gateway-api/rest/sct01/rs/paymentResultSCT01
This request allows you to get the status of a MyBank Transaction.
Typical use case
You have initiated a MyBank Transaction (using paymentInitiateSCT01); then, either initiatingPartyReturnURL has been requested (which means that the Payer has either authorised or cancelled the payment, and then he has asked to be redirected back to the Payee website), or the transactionValidityEnd has been reached: in both cases, it is guaranteed that the Transaction is now in a final status, so you need to retrieve such status.
Please note that this API should only be invoked once for each Transaction, when one of the events described above occurs.
Request body attributes
All attributes in the request body are mandatory.
Typical use of the response
- You will check transactionStatus to know whether the Transaction has been authorised by the Payer.
Depending on the integration with the Payee, you will somehow transmit the result of the Transaction to the Payee.
It is particularly important to correctly handle the response of this API: as explained in the "Technical Overview", an HTTP status code other than 200, as well as a result other than 200 do NOT give any indication on the actual status of the MyBank Transaction: in such circumstances, the Payee PSP must retry and invoke paymentResultSCT01 at a later time. Only if the response comes with an HTTP status code 200 and a result 200 can the status of the Transaction be assessed.