Skip to content

feat(mpp): preserve challenge opaque and carry settlement amount/currency#29

Merged
nkavian merged 1 commit into
inflowpayai:mainfrom
nkavian:feat/mpp-opaque-roundtrip-receipt-settlement
Jul 3, 2026
Merged

feat(mpp): preserve challenge opaque and carry settlement amount/currency#29
nkavian merged 1 commit into
inflowpayai:mainfrom
nkavian:feat/mpp-opaque-roundtrip-receipt-settlement

Conversation

@nkavian

@nkavian nkavian commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Echo the seller's opaque (and the full challenge) verbatim through parse -> credential so an issuer's HMAC challenge binding (opaque is slot 6 of the binding input) can be recomputed on redeem. Dropping opaque silently broke verification against spec-compliant MPP sellers.

Add optional amount/currency to MppReceipt so a seller can reconcile the settled figure. Both fields are optional and omitted when absent, keeping older wire artifacts byte-compatible.

…ency

Echo the seller's opaque (and the full challenge) verbatim through parse -> credential so an issuer's HMAC challenge binding (opaque is slot 6 of the binding input) can be recomputed on redeem. Dropping opaque silently broke verification against spec-compliant MPP sellers.

Add optional amount/currency to MppReceipt so a seller can reconcile the settled figure. Both fields are optional and omitted when absent, keeping older wire artifacts byte-compatible.
@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@nkavian nkavian merged commit ac5a1d6 into inflowpayai:main Jul 3, 2026
5 checks passed
@nkavian nkavian deleted the feat/mpp-opaque-roundtrip-receipt-settlement branch July 3, 2026 07:54
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.

1 participant