Commit Graph

186 Commits

Author SHA1 Message Date
Minhaz Ahmed Syrus
eacfb2d096 Add missing subscription billing retry flag 2020-03-05 17:00:02 +06:00
Minhaz Ahmed Syrus
91cd5b791c Add missing notification verification fields 2020-03-05 16:59:30 +06:00
Minhaz Ahmed Syrus
2700fc2ec0 Add missing subscription billing retry flag 2020-03-05 16:57:47 +06:00
Minhaz Ahmed Syrus
e4338cd607 Add missing notification verification fields 2020-03-05 16:57:47 +06:00
Junpei Tsuji
8ddfbdb30a Merge pull request #114 from jun06t/handle-appstore-http-error
Handle http status 5xx error
2020-02-20 16:41:39 +09:00
Junpei Tsuji
dd8af1ccd2 Update go 1.13 2020-02-20 14:52:46 +09:00
Junpei Tsuji
9ba6e70200 Handle http status 5xx error 2020-02-20 14:52:46 +09:00
Junpei Tsuji
052ce72134 Merge pull request #112 from tockn/did-fail-to-renew
Add NotificationType "DID_FAIL_TO_RENEW"
2020-02-20 14:36:24 +09:00
Junpei Tsuji
a3f651b46e Merge pull request #113 from jun06t/fix-test
Fix test
2020-02-20 13:09:20 +09:00
Junpei Tsuji
588d81166b Fixed test for playstore 2020-02-20 13:04:39 +09:00
Junpei Tsuji
a61c519ac8 Fixed makefile 2020-02-20 13:02:14 +09:00
Junpei Tsuji
3c88ce1648 Merge pull request #110 from shemming/PR-branch
Add ability to acknowledge purchases from playstore
2020-02-20 12:53:56 +09:00
tockn
0aa274084a add notification type DID_FAIL_TO_RENEW 2020-02-19 23:52:19 +09:00
tockn
c61599bf8e go fmt 2020-02-19 23:45:54 +09:00
Sabrina
e54455a635 add mocks for appstore 2020-01-30 16:04:26 -08:00
Junpei Tsuji
d9ae3a1d88 Merge pull request #105 from mhemmings/add-missing-omitempty
appstore: Set IsUpgraded as omitempty
2020-01-29 23:37:14 +09:00
Junpei Tsuji
b739b19032 Merge pull request #111 from ercling/master
Add SubscriptionNotification deprecation comments
2020-01-29 23:35:29 +09:00
Oleksandr Mykhailiuta
be7b768650 Add SubscriptionNotification deprecation comments 2020-01-29 12:24:20 +02:00
Sabrina
98cf7b036f update go mod 2020-01-28 13:40:15 -08:00
Sabrina
8359bd764f create mocks for playstore 2020-01-28 13:31:57 -08:00
Sabrina
3fcc899200 add more unit tests 2020-01-27 15:28:48 -08:00
Sabrina
31f386e220 add acknowledge product, refactor 2020-01-27 14:26:09 -08:00
Junpei Tsuji
ac84b97cd8 Merge pull request #108 from jun06t/go-mod-tidy
go mod tidy
2020-01-20 18:32:12 +09:00
Junpei Tsuji
c4c303e812 go mod tidy 2020-01-20 18:28:13 +09:00
Junpei Tsuji
b5222c00cf Merge pull request #106 from mlesar/hotfix/unified-receipt-status
Fixing NotificationUnifiedReceipt status type
2020-01-20 18:17:13 +09:00
Matija Lesar
c8962b67cb Fixing NotificationUnifiedReceipt Status type 2020-01-16 09:19:57 +01:00
Mark Hemmings
627fa5e7d1 appstore: Set IsUpgraded as omitempty 2019-12-27 15:07:54 +00:00
Junpei Tsuji
b31646baf4 Merge pull request #101 from mlesar/unified_receipt
Adding unified receipt to the Apple S2S notification
v1.2.0
2019-11-26 00:20:18 +09:00
Matija Lesar
1bd99243d7 Changed environment property type 2019-11-25 12:42:41 +01:00
Matija Lesar
7d624ad068 Updated order of properties 2019-11-25 11:26:42 +01:00
Matija Lesar
31a625b71e CR changes 2019-11-25 11:25:31 +01:00
Matija Lesar
4209b06a64 Added unified receipt 2019-11-25 10:00:13 +01:00
Junpei Tsuji
3d3bd2b6cf Merge pull request #99 from jun06t/error-message
Fixed test error messages
2019-10-10 11:56:32 +09:00
Junpei Tsuji
934d4ffbbd Fixed test error messages 2019-10-10 10:58:16 +09:00
Junpei Tsuji
9c0e16f820 Merge pull request #96 from jun06t/appstore-grace-period
Added grace period fields
v1.1.0
2019-09-17 13:47:52 +09:00
Junpei Tsuji
e895c80eb0 Added grace period fields 2019-09-17 13:23:05 +09: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