Commit Graph

11 Commits

Author SHA1 Message Date
Junpei Tsuji
6a5694a601 Merge pull request #88 from demiurgestudios/errors
Minor Error Handling Fixes
2019-05-23 17:26:51 +09:00
jordanco
ab2fbeeea5 Added missing RVS Response Fields 2019-05-21 10:24:53 +02:00
Owen
92d56725f7 Unwrap error in Amazon validator
In amazon/validator.go, an error was being wrapped by fmt.Errorf("%v",
err). That discards any type information about the returned error;
returning err lets the callers inspect the exact error returned by the
HTTP client.

The test had to change to do similar inspection.
2019-04-24 13:11:17 -04:00
Owen
46a2f52ca6 Return errors from JSON encode/decode
I found two JSON errors being shadowed; the one in amazon/validator.go
is being hidden by errors.New(responseError.Message) -- which should be
an empty string if there's a JSON error. So, it wouldn't report success,
but this gives the caller better information on what failed.

The second is in appstore/validator.go, which was ignoring encode errors
before POSTing a verify request.
2019-04-24 11:39:02 -04:00
Junpei Tsuji
8e67f122c0 Added client timeout because http.DefaultClient doesn't have timeout 2018-05-18 12:31:19 +09:00
Junpei Tsuji
034e269dc9 Support custom client for amazon app store 2018-05-18 12:06:59 +09:00
Junpei Tsuji
8c93c4b714 Support context for amazon app store 2018-05-18 12:06:59 +09:00
Junpei Tsuji
8b1c418ab7 Use standard http package instead of gorequest 2017-04-11 10:04:11 +09:00
Jumpei Tsuji
c6384b927f Golint and fixed a typo 2016-06-08 15:42:49 +09:00
djworth
633046093d Add the ability to override the sandbox url
Using an envirnoment variable called `IAP_SANDBOX_URL` you can override the sandbox url
2015-12-02 13:28:29 -05:00
djworth
1e0b41348c Adding Amazon IAP to the go-iap library
Fix the README by updating the amazon example
2015-11-24 12:04:46 -05:00