Skip to content

feat: payment status#127

Merged
berendsliedrecht merged 5 commits into
mainfrom
payment-status
Jun 17, 2026
Merged

feat: payment status#127
berendsliedrecht merged 5 commits into
mainfrom
payment-status

Conversation

@berendsliedrecht

@berendsliedrecht berendsliedrecht commented Jun 15, 2026

Copy link
Copy Markdown
Member

Implements the payment transaction status polling
flow from the EUDI Payment Status spec. After a
Wero SCA credential is issued, the wallet can poll
transaction_status_url to get the status code.
credential_metadata injection is done via an
Express middleware that patches res.send in
front of the OID4VCI routes, since Credo has no
hook for credential_metadata yet that I could find.
Generic records are used instead of a real payment
backend because the playground is self-contained.
wero-credential-token-{jti} links a credential to
its transaction_status_token without it appearing
in the credential or presentation.
transaction-status-{paymentTransactionId} holds the
current status, starting at PDNG and updated after
the SCA presentation is verified. The token is a
random UUID rather than a signed JWT, and status
transitions are triggered locally by the verifier
callback rather than by an upstream payment event.

Signed-off-by: Berend Sliedrecht <berend@animo.id>
Comment thread agent/src/endpoints.ts
Comment thread agent/src/endpoints.ts Outdated
Comment thread agent/src/issuer.ts Outdated
Signed-off-by: Berend Sliedrecht <berend@animo.id>
Comment thread agent/src/app.ts Outdated
Signed-off-by: Berend Sliedrecht <berend@animo.id>
Comment thread agent/src/endpoints.ts Outdated
Signed-off-by: Berend Sliedrecht <berend@animo.id>
Signed-off-by: Berend Sliedrecht <berend@animo.id>
@berendsliedrecht berendsliedrecht merged commit 51052ef into main Jun 17, 2026
1 check passed
@berendsliedrecht berendsliedrecht deleted the payment-status branch June 17, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants