Skip to content

Add Amazon Pay UPI provider#73

Open
pr-zkp2p wants to merge 4 commits intomainfrom
feat/amazonpay-upi
Open

Add Amazon Pay UPI provider#73
pr-zkp2p wants to merge 4 commits intomainfrom
feat/amazonpay-upi

Conversation

@pr-zkp2p
Copy link
Copy Markdown

Summary

  • Adds amazonpay/transfer_upi.json provider for Amazon Pay UPI P2P transfers (India)
  • Extracts recipient VPA, amount, UPI transaction ID, and date from the transaction detail page
  • Uses XPath on payui-transaction-receipt web component data attribute for metadata extraction
  • Uses HTML entity-encoded (") regex patterns for responseMatches and responseRedactions matching the raw HTML response
  • Adds amazonpay entry to providers.json manifest

Proof fields

Field Example
recipientId (UPI VPA) pallaviraheja1104@okhdfcbank
amount 5.0
paymentId (UPI txn ID) 607797343201
date 2026-03-17T22:00:14.000Z

Test plan

  • Metadata extraction verified via PeerAuth extension console
  • Proof generated successfully in 18.1s via local developer portal
  • Attestor signature received and proof status success
  • providers.json manifest resolves correctly at http://localhost:8080/amazonpay/transfer_upi.json

richardliang and others added 4 commits March 23, 2026 14:27
- Fix responseMatches regexes to use HTML entity encoding (")
  matching the raw HTML response from Amazon's transaction detail page
- Remove status responseMatch that Reclaim proof engine couldn't process
- Fix responseRedactions to use matching entity-encoded patterns
- Fix providers.json manifest path from transfer_amazonpay_upi.json
  to transfer_upi.json

Tested end-to-end: metadata extraction, proof generation (18.1s),
and attestor signature all succeed via developer.peer.xyz.
"method": "GET",
"body": "",
"metadata": {
"platform": "amazonpay",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be upi actually. which is why metadata isnt fetched. see zelle

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.

3 participants