2.0.0: Rudder.Core 2.0.0 DLL, samples and skill docs on slugs and environments
Claude-Session: https://claude.ai/code/session_01SMCvdwDmuxoaqGgvGBLk1V
This commit is contained in:
@@ -81,8 +81,8 @@ namespace RudderSdk.Unity.Samples
|
||||
if (offer == null)
|
||||
throw new InvalidOperationException("Store " + storeSlug + " has no offers.");
|
||||
|
||||
_page.Log("Stores.PurchaseAsync(" + storeSlug + ", " + offer.Id + ")");
|
||||
var response = await client.Stores.PurchaseAsync(storeSlug, offer.Id);
|
||||
_page.Log("Stores.PurchaseAsync(" + storeSlug + ", " + offer.Slug + ")");
|
||||
var response = await client.Stores.PurchaseAsync(storeSlug, offer.Slug);
|
||||
if (response != null && response.Success != true)
|
||||
throw new InvalidOperationException(response.Error ?? "Purchase rejected");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user