johnmarsden
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2017
08:53 AM
Accurate csfake XML files for Billing?
I've seen a bunch of old posts about inaccurate documentation and have experienced it myself. Some of them were related to the roChannelStore and I believe that. So this question is in two parts:
1.) Does anyone have some proven accurate dummy XMLs for the SG Channel Store events? CheckOrder, GetCatalog, GetPurchases, PlaceOrder...
2.) I noticed that GetPurchases() supposedly has fields like: freeTrialQuantity, freeTrialType, productType, cost, etc. but the event from DoOrder() does not. Seems a bit odd that I wouldn't get that information back after doing the purchase order. If I wanted to get fields like that, is this how I have to do it:
A. Call DoOrder()
B. Get purchaseId
C. Call GetPurchases()
D. Loop through list to find purchaseId
Is that really what I have to do in order to get those details?
Are those fields actually on the DoOrder but undocumented?
Thanks!
1.) Does anyone have some proven accurate dummy XMLs for the SG Channel Store events? CheckOrder, GetCatalog, GetPurchases, PlaceOrder...
2.) I noticed that GetPurchases() supposedly has fields like: freeTrialQuantity, freeTrialType, productType, cost, etc. but the event from DoOrder() does not. Seems a bit odd that I wouldn't get that information back after doing the purchase order. If I wanted to get fields like that, is this how I have to do it:
A. Call DoOrder()
B. Get purchaseId
C. Call GetPurchases()
D. Loop through list to find purchaseId
Is that really what I have to do in order to get those details?
Are those fields actually on the DoOrder but undocumented?
Thanks!
4 REPLIES 4
johnmarsden
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2017
07:45 AM
Re: Accurate csfake XML files for Billing?
bump.
Veeta
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2017
01:28 PM
Re: Accurate csfake XML files for Billing?
I do the same. Call GetPurchases immediately after DoOrder in order to have the full details.
johnmarsden
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2017
09:08 AM
Re: Accurate csfake XML files for Billing?
"Veeta" wrote:
I do the same. Call GetPurchases immediately after DoOrder in order to have the full details.
Doesn't it feel dirty to do that?
Veeta
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2017
12:14 PM
Re: Accurate csfake XML files for Billing?
Not for me. It depends on the architecture of your subscription management, though. If you have to notify the CMS of subscription entitlements, this may happen due to a DoOrder or from a "restore purchase", such as a user launching the app on a second Roku device. I just execute the same code in both places, at every launch and after DoOrder.