Skip to content

feat: implement mock AP2 signature verification#26

Open
0x8000-0000 wants to merge 1 commit intoUniversal-Commerce-Protocol:mainfrom
0x8000-0000:task-ucp-4
Open

feat: implement mock AP2 signature verification#26
0x8000-0000 wants to merge 1 commit intoUniversal-Commerce-Protocol:mainfrom
0x8000-0000:task-ucp-4

Conversation

@0x8000-0000
Copy link
Contributor

Why:

  • To verify that the server correctly rejects invalid AP2 mandates with the appropriate error code.
  • Required for conformance testing of the AP2 security flow.

What:

  • Added 'Ap2VerificationError' to exceptions.
  • Implemented '_verify_ap2_mandate' in 'CheckoutService' to reject mandates containing the substring 'invalid_signature'.
  • Updated 'complete_checkout' to invoke this verification.

Why:
- To verify that the server correctly rejects invalid AP2 mandates with the appropriate error code.
- Required for conformance testing of the AP2 security flow.

What:
- Added 'Ap2VerificationError' to exceptions.
- Implemented '_verify_ap2_mandate' in 'CheckoutService' to reject mandates containing the substring 'invalid_signature'.
- Updated 'complete_checkout' to invoke this verification.
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