I have a beta channel and two " in channel products" and I can successfully subscribe channel products.
subscription.xml
<ChannelStore id="billing"/>
subscription.brs[size=100]sub init()[/size]
m.billing.ObserveField("orderStatus", "On_billing_purchaseResult")
end sub
sub On_billing_purchaseResult()
if m.billing.orderStatus = invalid OR m.billing.orderStatus.status = invalid then
?"invalid purchase"
return
end if
if m.billing.orderStatus.status = 1 then
? "Purchased RESULT : " ; m.billing.orderStatus
end if
end sub
I want to log purchaseId after a successful subscription.
How can I get purchased Id using product id from content node "m.billing.orderStatus ". ?