fix(ack-pay): accept DID URIs for serviceCallback - #208
Conversation
Align paymentRequest.serviceCallback with paymentService/receiptService and the documented URL-or-DID contract by reusing urlOrDidUri in both Valibot and Zod schemas. Fixes agentcommercekit#205
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. Walkthrough
ChangesPayment request callback validation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Payment request callbacks now consistently accept documented DID URIs alongside URLs across both schema implementations, with coverage for valid and invalid inputs. No current merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
urlOrDidUriforpaymentRequest.serviceCallbackin Valibot and Zod.paymentService/receiptServicefields.Testing
pnpm --filter @agentcommercekit/ack-pay exec vitest run src/schemas/schemas.test.tsAI usage disclosure
Assisted by Cursor. I verified the docs/schema mismatch, implemented the dual-schema change, and ran the focused tests myself.
Fixes #205
Summary by CodeRabbit
Bug Fixes
Tests