Skip to content

feat: PCI host routing for Card/Token instruments, expand MetaInfo - #35

Merged
sk4x0r merged 4 commits into
mainfrom
pci_Compliance_changes
Apr 21, 2026
Merged

feat: PCI host routing for Card/Token instruments, expand MetaInfo#35
sk4x0r merged 4 commits into
mainfrom
pci_Compliance_changes

Conversation

@282000ypk

Copy link
Copy Markdown
Collaborator
  • Add PciHostFilter and DeviceOsHeaderFilter via InstrumentRequestFilter interface
  • Route Card/Token instruments to cards.phonepe.com via PayContext filter chain
  • Expand MetaInfo from udf1-5 to udf1-15 with @Size/@pattern constraints

Yogesh Kamble and others added 3 commits March 20, 2026 14:50
…o to udf1-15, and add filter pattern

- Add PciHostFilter and DeviceOsHeaderFilter via InstrumentRequestFilter interface
- Route Card/Token instruments to cards.phonepe.com via PayContext filter chain
- Expand MetaInfo from udf1-5 to udf1-15 with @Size/@pattern constraints
- Add requestViaAuthRefresh overload with explicit hostUrl in BaseClient
- Add pciPgHostUrl to Env; TEST env uses TESTING_URL for WireMock compatibility
- Add 26 new tests (PciHostFilter, DeviceOsHeaderFilter, integration, MetaInfo)
- Bump version 2.2.2 -> 2.2.3

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- udf1-10: max 256 chars validation
- udf11-15: max 50 chars + alphanumeric pattern validation
- Null/empty values always allowed across all SDKs
- Java: fixed SANDBOX PCI URL; MetaInfo converted record->@DaTa class
- Node: fixed 401 retry in requestViaAuthRefreshPci
- Go: PciPgHostURL defaults to pgHostURL when empty; MetaInfo validated in Pay()
- Python: null udf fields excluded from JSON serialization
- PHP: separate request MetaInfo class with validation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@sk4x0r sk4x0r left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review comments on filter chain design and DeviceOS header regression.

Comment thread src/main/java/com/phonepe/sdk/pg/payments/v2/CustomCheckoutClient.java Outdated
@sonarqubecloud

Copy link
Copy Markdown

@sk4x0r
sk4x0r merged commit 1b6c122 into main Apr 21, 2026
3 checks passed
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