Ask a Question

Ask a Question
Back to All

Can I get 'ListingRef' from the 'PlayerListingView'

Hi! I am working on a dynamic shop where I load data from Beamable (stores, listings, skus), so far I was able to implement purchases with a sku thanks to this:

_context.Api.BeamableIAP.StartPurchase(_listing.offer.symbol, sku.name).

I am now working on purchase without skus and I am using:

_context.Api.CommerceService.Purchase(_storeRef.Id, _listingRef.Id)

but I am blocked.

I have the _storeRef.Id by calling ShopConfiguration.Instance.Stores but what about the ListingRef? Is there a way to get it from the PlayerListingView ?