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

added redeemWalletCode method #5

Merged
merged 1 commit into from
Apr 16, 2017
Merged

Conversation

Rob--
Copy link
Contributor

@Rob-- Rob-- commented Apr 13, 2017

I have not actually tested this method on a valid Steam code yet. My assumption is that if the wallet code is valid the credit will be redeemed to the user's Steam account without further interaction required.

Edit: Usage will look like this:

store.redeemWalletCode('RWNFQ-90K07-MP82Q', function(err, result, redeemed){
        // result will look like: { EResult: 1, EPurchaseResult: 15 }
        // so if `redeemed` is false, then they must look at the result parameter to understand why the request failed
})

@DoctorMcKay DoctorMcKay merged commit d4afaab into DoctorMcKay:master Apr 16, 2017
@DoctorMcKay
Copy link
Owner

Good thing I went and bought a card to test this with. The confirmredeemwalletcode request is required; it's what actually redeems the code. validatewalletcode is merely a pre-check.

@Rob--
Copy link
Contributor Author

Rob-- commented Apr 16, 2017

Should've done that, sorry. It's just that from this discussion about redeeming wallet codes I saw this comment and this commit and it didn't seem like a further request was required to redeem the code.

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

Successfully merging this pull request may close these issues.

2 participants