open-banking-gateway
open-banking-gateway copied to clipboard
Status for Consent results in 500 when redirect is not finished yet
When Initiate payment is done with post /v1/banking/pis/payments/{payment-product} any get /v1/banking/pis/payments/{payment-product} to returned handle fails as long as redirect has not finished.
Of course bank may not know payment, as redirect might not be finished yet but tpp does. So it can return status pending or anything similar. If this is regarded as a feature, please let us have a talk.
@electronicpeter As you have a webhook, this means payment was accepted as soon as you got 202. And until redirect was not done - payment was not authorized. So you have 2 statuses - SUBMITTED and AUTHORIZED which FinTech can easily compute. Extending API to provide non-bank statuses do make sense (like SUBMITTED, etc.), but is not of high priority now
https://jira.adorsys.de/browse/OBG-69