Skip to content

Commit

Permalink
feat: IAP 补充说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin authored and Gavin committed Nov 20, 2024
1 parent 32accd6 commit 12b8ef8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cn/docs/sdk/tap-iap/develop/unity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public class MyIAPManager : IStoreListener {
builder.Configure<ITapTapStoreConfiguration>().SetClientId("Your Client ID Here");
builder.Configure<ITapTapStoreConfiguration>().SetClientToken("Your Client Token Here");
builder.Configure<ITapTapStoreConfiguration>().SetRegionCode(0); // 0: CN, 1: GLOBAL
builder.Configure<ITapTapStoreConfiguration>().SetEnableLog(true); // 建议在 DEBUG 过程中打开 log, Release 下关闭
builder.AddProduct("100_gold_coins", ProductType.Consumable);

UnityPurchasing.Initialize (this, builder);
Expand Down
1 change: 1 addition & 0 deletions hk/docs/sdk/TapPayments/develop/unity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public class MyIAPManager : IStoreListener {
builder.Configure<ITapTapStoreConfiguration>().SetClientId("Your Client ID Here");
builder.Configure<ITapTapStoreConfiguration>().SetClientToken("Your Client Token Here");
builder.Configure<ITapTapStoreConfiguration>().SetRegionCode(1); // 0: CN, 1: GLOBAL
builder.Configure<ITapTapStoreConfiguration>().SetEnableLog(true); // 建议在 DEBUG 过程中打开 log, Release 下关闭
builder.AddProduct("100_gold_coins", ProductType.Consumable);

UnityPurchasing.Initialize (this, builder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public class MyIAPManager : IStoreListener {
builder.Configure<ITapTapStoreConfiguration>().SetClientId("Your Client ID Here");
builder.Configure<ITapTapStoreConfiguration>().SetClientToken("Your Client Token Here");
builder.Configure<ITapTapStoreConfiguration>().SetRegionCode(1); // 0: CN, 1: GLOBAL
builder.Configure<ITapTapStoreConfiguration>().SetEnableLog(true); // Enable the log. It's recommended to turn it on for Debug and off for Release, with it being off by default.
builder.AddProduct("100_gold_coins", ProductType.Consumable);

UnityPurchasing.Initialize (this, builder);
Expand Down

0 comments on commit 12b8ef8

Please sign in to comment.