Skip to content

Conversation

jolind93
Copy link

@jolind93 jolind93 commented Jul 8, 2025

The reason for this PR is to fix the cancel notification throwing exception due to testing servers is sending two new properties.
This also addresses the 3 issues I've created
#33
#34
#35

  • Add lastorderstep and orderstatuses to CancelNotificationData
  • Add ReturnToAppURL to AbstractAccountDataAttributes
  • Deprecate urlSheme in AbstractAccountDataAttributes
  • Add @Getter to method and uuid for easier access to them
  • Update JsonRpcSigner.verify to take a JsonNode dataNode for verifying signature to handle null/not send values if Trustly sever does not send those values

I was also thinking of disabling DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES on the object mapper in TrustlyApiClient so the parsing don't crash if Trustly server sends a new value. I left it out here.

I have validated locally that the cancel notification now works and don't throw any exception and the verifying of signature also work.

Add ReturnToAppURL
Deprecate urlSheme
Add @Getter to method and uuid
Update signer to take a JsonNode dataNode for verifying signature to handle null/not send values
@jolind93 jolind93 mentioned this pull request Jul 9, 2025
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.

1 participant