Closed adrian-gierakowski closed 5 years ago
Sounds like a good idea.
Perhaps we can consolidate this change in #40
@KLVTZ sounds good. I wanted to add this before but it will be a breaking change.
@superandrew213 Gotcha, yeah maybe a better flow would be to review and merge #40 and then maybe consider this request in a different PR. If this will be a breaking change then maybe the PR would justify a semver upgrade from the owner. Whatcha think @ronkorving?
@adrian-gierakowski Are you still up for making a PR now that #40 is merged? As mentioned earlier, it should be marked as a breaking change.
@justinpage I'm on it
@justinpage I'll deal with #30 first
orderId
not thetoken
should be the property used astransactionId
the Google
token
is more like the Apples base64 encodedreceipt
: both enable the developer to fetch updated information about users purchase/subscription. GooglesorderId
is the property which corresponds to Applestransaction_id
.its the
orderId
that uniquely identifies each transaction made by the user. What you are currently using astransactionId
is thetoken
which is used to fetch information from the api about given purchase/subscription. In case of renewing subscriptions, there will by more then one transaction associated with givetoken
, each transaction having a uniqueorderId
which corresponds to subsequent subscription periods. If you ever want to match data fetched from googles purchases api with play store sales & payout reports you will need to use theorderId
not thetoken
.