-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
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
- Create a test gateway
- Attempt to redact the gateway using the gateway token from the previous step and call Spreedly.redact(SpreedlyGatewayAccount);
Observations
- 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>
Metadata
Metadata
Assignees
Labels
No labels