Commit Graph

174 Commits

Author SHA1 Message Date
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
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
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