Skip to content

Conversation

@eddyjaga
Copy link
Collaborator

@eddyjaga eddyjaga commented Nov 7, 2025

Short Description / Link to Ticket

This pull request adds support for managing PayID registrations in the Zai Payment library. The main changes introduce a new resource class for PayID operations, update the main module to expose this resource, and ensure the response handler recognizes PayID data.

PayID resource integration:

  • Added a new ZaiPayment::Resources::PayId class (lib/zai_payment/resources/pay_id.rb) that provides methods to register, show, and deregister PayIDs for virtual accounts, including input validation and request construction.
  • Updated the main ZaiPayment module to require the new PayID resource and provide a pay_ids accessor for users to interact with PayID operations. [1] [2]

Response handling:

  • Updated the Response class to recognize pay_ids as a top-level data key, ensuring PayID API responses are parsed correctly.

Testing

Additional Notes

@eddyjaga eddyjaga merged commit 4c2c7a8 into main Nov 7, 2025
2 checks passed
@eddyjaga eddyjaga deleted the feature/pay-id-endpoints branch November 7, 2025 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants