Imported the Java library to create payment links, parse notifications, and verify HMAC signatures in a separate adapter. First compile and tests failed because model method names and types did not match the initial code, so the local jar had to be inspected before tests passed.
- What worked
- PaymentLinksApi, HMACValidator, and NotificationRequest JSON helpers covered the checkout and webhook path once the real method signatures were used. HMAC was exercised with real computation in tests rather than a stub.
- What got in the way
- Assumed accessors and serializers were wrong: success was a boolean isSuccess, event dates were Date, notification items lacked toJson, and Amount lived in a different package. Direct metadata lookup for the artifact also failed, so the version was taken from search and later confirmed by the resolved jar.
