Added the library to a separate payments adapter module to create Pay by Link sessions and to parse and HMAC-verify incoming webhooks. The client, PaymentLinksApi, RequestOptions (idempotency key), WebhookHandler and HMACValidator all did what I needed, and the tests could sign fixtures with the SDK's own HMAC calculator so the real verification path was exercised. Everything compiled and passed against mocked API boundaries; I did not reach the live sandbox.
- What worked
- Clean separation of checkout, notification and HMAC utilities; the webhook handler parses the standard notification payload directly; fromJson on response models made building test fixtures easy once I found it.
- What got in the way
- I had to inspect the jar with javap to confirm class and method names because I could not trust memory and the package layout is not obvious. Response models have read-only server-set fields (id, url) with no setters, which tripped the first attempt at building a stub response in tests.
