143 Commits

Author SHA1 Message Date
Junpei Tsuji
6a5694a601 Merge pull request #88 from demiurgestudios/errors
Minor Error Handling Fixes
v1.0.0
2019-05-23 17:26:51 +09:00
Junpei Tsuji
f4cdcf7555 Merge pull request #89 from jordancco/response-properties
Added missing RVS Response Fields
2019-05-21 18:31:43 +09:00
jordanco
ab2fbeeea5 Added missing RVS Response Fields 2019-05-21 10:24:53 +02:00
jordancco
3c17d9a759 Merge pull request #1 from jordancco/upstream-merge
Upstream merge
2019-05-20 16:16:35 +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
04b80e5afe Merge pull request #86 from jordancco/patch-1
Added new const NotificationTypeDidChangeRenewalStatus
2019-03-26 10:00:36 +09:00
jordancco
aa29cda61f Update notification.go
Added new const NotificationTypeDidChangeRenewalStatus
2019-03-25 14:38:48 +01:00
Junpei Tsuji
bdee7286d6 Merge pull request #84 from micnncim/master
Add missing error handling
2019-03-15 09:43:06 +09:00
micnncim
74773834e2 Add missing error handling 2019-03-11 18:21:25 +09:00
Junpei Tsuji
ddb131ce18 Merge pull request #79 from WhiteRaven777/master
Add `pending_renewal_info.original_transaction_id` for Apple's receipt
2018-11-22 15:14:03 +09:00
WhiteRaven777
29290dc24e Add pending_renewal_info.original_transaction_id
- Since `original_transaction_id` included in `pending_renewal_info` is not defined, it was added.
2018-11-22 13:50:56 +09:00
Junpei Tsuji
62ff60fc71 Merge pull request #77 from jun06t/test
Fixed test error
2018-11-06 17:33:47 +09:00
Junpei Tsuji
0404f1ee3e Fixed test error 2018-11-06 17:30:39 +09:00
Junpei Tsuji
70b42da9e1 Use TableDrivenTests 2018-11-06 17:22:52 +09:00
Junpei Tsuji
3380afe242 Update golang 1.11 2018-11-06 17:21:59 +09:00
Junpei Tsuji
441ba93c28 Merge pull request #76 from msyrus/master
Add is_in_intro_offer_period in InApp & NotificationReceipt
2018-11-06 16:56:14 +09:00
Minhaz Ahmed Syrus
49d7fb675d Add is_in_intro_offer_period in NotificationReceipt 2018-10-29 08:28:12 +06:00
Minhaz Syrus
b0d36e4962 Add is_in_intro_offer_period in InApp 2018-10-28 16:45:35 +06:00
Junpei Tsuji
6836fe8b21 Merge pull request #68 from jun06t/noti-type
Update subscription notification type for IAP
2018-05-23 14:26:09 +09:00
Junpei Tsuji
63258ccb00 Update subscription notification type for IAP 2018-05-23 11:07:07 +09:00
Junpei Tsuji
edab1bdb5a Merge pull request #67 from jun06t/readme
[ci skip] Update read me
2018-05-18 18:24:56 +09:00
Junpei Tsuji
b9fab3793e [ci skip] Update read me 2018-05-18 18:24:18 +09:00
Junpei Tsuji
4258729b23 Merge pull request #66 from jun06t/client
Added client timeout because http.DefaultClient doesn't have timeout
2018-05-18 15:08:21 +09:00
Junpei Tsuji
8e67f122c0 Added client timeout because http.DefaultClient doesn't have timeout 2018-05-18 12:31:19 +09:00
Junpei Tsuji
cdb4cd7c54 Merge pull request #65 from jun06t/amazon
Support custom client for Amazon
2018-05-18 12:30:47 +09:00
Junpei Tsuji
034e269dc9 Support custom client for amazon app store 2018-05-18 12:06:59 +09:00
Junpei Tsuji
d53311131e Fixed coverage command 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
1fe22cb99a Merge pull request #64 from jun06t/gae
Support custom http client for GAE
2018-05-18 11:44:22 +09:00
Junpei Tsuji
48769db5b8 Added google.golang.org/appengine/urlfetch package to pass a test 2018-05-17 18:21:54 +09:00
Junpei Tsuji
1dbebe0623 Support custom http client for GAE 2018-05-17 18:16:19 +09:00
Junpei Tsuji
f2bcd8eb15 Merge pull request #63 from jun06t/context
Support context package when requesting AppStore
2018-05-17 14:37:21 +09:00
Junpei Tsuji
06acfeb7a8 Fixed read me 2018-05-17 14:31:13 +09:00
Junpei Tsuji
ea45e6dbd0 Support context package when requesting GooglePlay 2018-05-17 14:31:06 +09:00
Junpei Tsuji
da74e6bb57 Fixed read me 2018-05-17 13:52:09 +09:00
Junpei Tsuji
0cfabb49bb Support context package when requesting AppStore 2018-05-17 13:37:16 +09:00
Junpei Tsuji
79964782cf Merge pull request #62 from jun06t/client
Support custom client for IAP
2018-05-17 13:27:24 +09:00
Junpei Tsuji
2a724a9d7c Support custom client 2018-05-17 12:36:12 +09:00
Junpei Tsuji
abb45f0adc Merge pull request #58 from jun06t/cancel
Added cancellation date fields
2018-03-30 11:25:52 +09:00
Junpei Tsuji
90290e9d74 Added cancellation date fields 2018-03-30 10:41:53 +09:00
Junpei Tsuji
6cac63f455 Merge pull request #57 from jun06t/ios6
Added iOS6 style receipt
2018-03-29 17:48:19 +09:00
Junpei Tsuji
ac1a97ceb4 Added iOS6 style receipt 2018-03-29 17:05:57 +09:00
Junpei Tsuji
d8d590ec03 Merge pull request #53 from mizzy/omitempty-some-keys
Add "omitempty" to some keys which need not to be returned
2018-03-29 17:05:04 +09:00
Junpei Tsuji
d1f9189afa Merge pull request #56 from jun06t/env
Fixed environmental constants
2018-02-28 14:49:49 +09:00
Junpei Tsuji
659dd4b8ca Fixed environmental constants 2018-02-28 14:29:41 +09:00
Junpei Tsuji
50e40fdccb Merge pull request #55 from jun06t/env
Fixed environment values
2018-02-23 18:39:02 +09:00
Junpei Tsuji
a2381d2dfd Fixed environment values 2018-02-23 17:58:56 +09:00
Gosuke Miyashita
ff603d9e83 Add "omitempty" to some keys which need not to be returned 2018-02-21 10:52:43 +09:00
Junpei Tsuji
b94ad93ee8 Merge pull request #51 from jun06t/numeric
Handle type mismatch
2018-02-09 10:24:14 +09:00