Skip to content

Instantly share code, notes, and snippets.

@neon-izm neon-izm/file0.txt
Last active Oct 30, 2019

Embed
What would you like to do?
Unityでアイテムの課金処理よろしく、と言われた人向け事前知識 ref: https://qiita.com/neon-izm/items/132f034821e0daf5a2e3
public class PurchaseSettings
{
/*
immutable purchasable item infos.
*/
public static readonly ProductInfos IMMUTABLE_PURCHASE_ITEM_INFOS = new ProductInfos
{
productInfos = new ProductInfo[] {
#if UNITY_IOS || UNITY_EDITOR
new ProductInfo("100_coin", "100_coin_ios", true, "100coin_description"),
#elif UNITY_ANDROID
new ProductInfo("100_coin", "100_coin_android", true, "100coin_description"),
#endif
}
};
//こんな感じ!
Autoya.Purchase(
purchaseId,
"100_coin",
pId =>
{
private string OnTicketResponse(string ticketData)
{
// modify if need.
//return ticketData;
return "test_not_auth";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.