Skip to content

Redact gateway expects wrong response type #6

Description

@mgsmith57

Description

It appears that the payment gateway redact method is expecting the wrong response payload. I haven't dug too deep but the SDK is expecting a SpreedlyGatewayAccount but I believe the API returns a transaction response.

SDK version error occured with was 0.9.6

https://docs.spreedly.com/reference/api/v1/#redact

Steps to Reproduce

  1. Create a test gateway
  2. Attempt to redact the gateway using the gateway token from the previous step and call Spreedly.redact(SpreedlyGatewayAccount);

Observations

  1. Underlying exception thrown was
cc.protea.spreedly.SpreedlyException: java.lang.RuntimeException: null : null
        at cc.protea.spreedly.SpreedlyUtil.addError(SpreedlyUtil.java:166)
        at cc.protea.spreedly.SpreedlyUtil.addError(SpreedlyUtil.java:150)
        at cc.protea.spreedly.SpreedlyUtil.put(SpreedlyUtil.java:83)
        at cc.protea.spreedly.Spreedly.redact(Spreedly.java:113)
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"transaction"). Expected elements are <{}gateway>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions