Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BatchDetails.getSettlementState() returning null due to unexpected element value #117

Closed
lektran opened this issue Jun 21, 2017 · 1 comment

Comments

@lektran
Copy link

lektran commented Jun 21, 2017

Using production, we encountered a few instances of the settlementState element returning the value "settlementError". This causes BatchDetails.getSettlementState() to return null because the SDK only allows for the values "settledSuccessfully" or "error", as per the API documentation.

<batch> <batchId>XXXXXXXXXX</batchId> <settlementTimeUTC>2017-04-07T02:45:03Z</settlementTimeUTC> <settlementTimeLocal>2017-04-06T19:45:03</settlementTimeLocal> <settlementState>settlementError</settlementState> <paymentMethod>creditCard</paymentMethod> <marketType>eCommerce</marketType> <product>Card Not Present</product> </batch>

@adavidw
Copy link
Contributor

adavidw commented Jun 23, 2017

Good catch! As defined in the schema, acceptable values in that element should be settledSuccessfully, settlementError, or pendingSettlement.

I've made the change in the API Reference, although the change won't go live until the next build of the production site (which could be a week or two).

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

No branches or pull requests

3 participants
@lektran @adavidw and others