Commit Graph

158 Commits

Author SHA1 Message Date
Hasan
c992b9705b Merge pull request #1 from Tapfury/isupgrade
Add missing is_upgrade field
2019-08-01 17:55:11 +06:00
sanjid133
ff9fd778a3 Add missing is_upgrade field 2019-08-01 17:53:26 +06:00
Minhaz Ahmed Syrus
1877c0ae24 Add missing subscription billing retry flag 2019-08-01 17:34:39 +06:00
Minhaz Ahmed Syrus
7ef252fde0 Add missing notification verification fields 2019-08-01 17:34:39 +06:00
kitakitabauer
062102b0f3 Merge pull request #93 from awa/androidpublisher-v3
Update androidpublisher api v3
2019-06-19 16:36:38 +09:00
Junpei Tsuji
f0014d5a79 Merge pull request #92 from jun06t/ack
Added acknowledge method for subscription
2019-05-31 11:06:24 +09:00
Junpei Tsuji
c446edf3c4 Added acknowledge method for subscription 2019-05-31 11:03:51 +09:00
Junpei Tsuji
c6347f9585 Merge pull request #91 from jun06t/v3
Update androidpublisher api v3
2019-05-23 17:53:24 +09:00
Junpei Tsuji
c8899d8d2d Update androidpublisher api v3 2019-05-23 17:47:36 +09:00
Junpei Tsuji
ebccfd0170 Merge pull request #90 from jun06t/gomod
Use go modules
2019-05-23 17:36:00 +09:00
Junpei Tsuji
b4e4bec42f Use go modules 2019-05-23 17:27:20 +09:00
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
Minhaz Syrus
12a8101bb0 Merge branch 'master' of github.com:awa/go-iap 2019-03-23 19:28:46 +06: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
Minhaz Syrus
f94fdb06d8 Merge branch 'master' of github.com:awa/go-iap 2019-02-02 12:17:08 +06: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
Minhaz Ahmed Syrus
c371d6eb78 Add missing subscription billing retry flag 2018-11-06 16:58:05 +06: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
Minhaz Ahmed Syrus
6d5e856650 Add missing notification verification fields 2018-11-06 14:25:38 +06: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