sanjid133
6b53c8c58e
test url
2020-02-17 13:13:14 +06:00
sanjid133
75ba2f30ea
fix auto renew status
2020-02-11 20:00:58 +06:00
sanjid133
d6cb5f5767
remove duplicate
2019-12-05 13:57:52 +06:00
sanjid133
5d167ac1a5
Merge branch 'master' of https://github.com/awa/go-iap
2019-12-05 10:53:06 +06: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
e895c80eb0
Added grace period fields
2019-09-17 13:23:05 +09:00
sanjid133
62fa34fffb
Merge branch 'master' of github.com:Tapfury/go-iap into noti
...
# Conflicts:
# appstore/model.go
# appstore/notification.go
2019-08-18 17:06:30 +06:00
sanjid133
8414aff344
status field not present in initial_buy
2019-08-18 16:56:32 +06:00
sanjid133
e0f6e608e7
auto renew status string
2019-08-18 16:56:32 +06:00
sanjid133
11e072e211
Add renewal field
2019-08-18 16:56:32 +06:00
sanjid133
b60c954624
Verfiy latest receipt
2019-08-18 16:56:32 +06:00
sanjid133
c92634081e
Add missing is_upgrade field
2019-08-18 16:56:32 +06:00
Minhaz Ahmed Syrus
fbfe02b5f6
Add missing subscription billing retry flag
2019-08-18 16:56:32 +06:00
Minhaz Ahmed Syrus
bac6b5676b
Add missing notification verification fields
2019-08-18 16:56:09 +06:00
Minhaz Ahmed Syrus
94f276769f
Add missing subscription billing retry flag
2019-08-18 16:54:57 +06:00
Minhaz Ahmed Syrus
4ed348bb1b
Add missing notification verification fields
2019-08-18 16:54:57 +06:00
sanjid133
5354251ea5
Add renewal field
2019-08-07 15:16:30 +06:00
sanjid133
ee59170931
Verfiy latest receipt
2019-08-06 17:22:41 +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
Junpei Tsuji
b4e4bec42f
Use go modules
2019-05-23 17:27:20 +09: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
jordancco
aa29cda61f
Update notification.go
...
Added new const NotificationTypeDidChangeRenewalStatus
2019-03-25 14:38:48 +01:00
micnncim
74773834e2
Add missing error handling
2019-03-11 18:21:25 +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
3380afe242
Update golang 1.11
2018-11-06 17:21:59 +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
63258ccb00
Update subscription notification type for IAP
2018-05-23 11:07:07 +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
0cfabb49bb
Support context package when requesting AppStore
2018-05-17 13:37:16 +09:00
Junpei Tsuji
2a724a9d7c
Support custom client
2018-05-17 12:36:12 +09:00
Junpei Tsuji
90290e9d74
Added cancellation date fields
2018-03-30 10:41:53 +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
659dd4b8ca
Fixed environmental constants
2018-02-28 14:29:41 +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
77b179753c
Handle type mismatch
2018-02-08 20:06:41 +09:00
Junpei Tsuji
2e30b9a5bb
Merge pull request #45 from Timothylock/master
...
Have app store hit prod and then sandbox if 21007
2018-02-08 17:14:11 +09:00
Timothy Lock
c809bb0ee2
Fix test case of BadRequest
...
Should have been StatusOK
2018-01-29 18:01:54 -05:00
Timothy Lock
3b95498cbe
Add Success test case + Refactor Comments
2018-01-29 17:53:58 -05:00
Timothy Lock
594d8d6544
Correct tests
...
serverWithResponse was hardcoded to return http.StatusBadRequest whereas it differed in the tests in the previous commits. This has been corrected by turning it into a parameter.
2018-01-22 17:17:05 -05:00
Timothy Lock
6d00842743
Bring tests back up to 100%
...
Make a new method called parseResponse which essentially allows us to feed it our own response so that we can feed it bad body so that it cannot unmarshal or even read it.
2018-01-22 15:40:28 -05:00
Timothy Lock
fe51698284
Fix bug involving HttpStatusResponse
...
the `ok` in `r, ok := result.(*HttpStatusResponse)` would always fail unless the `result` being passed in was also of type `HttpStatusResponse`
2018-01-17 16:47:14 -05:00
Timothy Lock
132768c0fe
Use new struct to check status & Remove IAP_ENVIRONMENT
...
Use a new struct called `HttpStatusResponse` to check the status code returned in the receipt. This is ios-type independent and will redirect the receipt to sandbox if needed.
Following Apple's recommendation, always hit production and then sandbox. There is no more need to specify which environment to hit.
2018-01-17 16:02:52 -05:00