浏览代码

Update description for setting up android iap

volzhs 7 年之前
父节点
当前提交
ab07f94911
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      misc/android_iap/iap.gd
  2. 1 1
      misc/android_iap/iap_demo.gd
  3. 3 3
      misc/android_iap/main.tscn

+ 1 - 1
misc/android_iap/iap.gd

@@ -20,7 +20,7 @@ onready var payment = Engine.get_singleton("GodotPayments")
 func _ready():
 	if payment:
 		# set callback with this script instance
-		payment.setPurchaseCallbackId(get_instance_ID())
+		payment.setPurchaseCallbackId(get_instance_id())
 
 # set consume purchased item automatically after purchase, defulat value is true
 func set_auto_consume(auto):

+ 1 - 1
misc/android_iap/iap_demo.gd

@@ -52,7 +52,7 @@ func on_consume_fail():
 	alert.popup()
 
 func on_sku_details_complete():
-	alert.set_text("Got detail info : " + iap.sku_details["item_test_a"].to_json())
+	alert.set_text("Got detail info : " + to_json(iap.sku_details["item_test_a"]))
 	alert.popup()
 
 

+ 3 - 3
misc/android_iap/main.tscn

@@ -139,11 +139,11 @@ rect_clip_content = false
 mouse_filter = 2
 size_flags_horizontal = 2
 size_flags_vertical = 0
-text = "\"iap\" is located in Autoloads. See Scene > Project Settings > AutoLoad
+text = "\"iap\" is located in Autoloads. See Project > Project Settings > AutoLoad
 
 To enable IAP module
 
-1. Scene > Project Settings
+1. Project > Project Settings
 2. write [Category : android] / [Property : modules] / [Type : String] and click Add
 3. Click \"Android\" on left panel
 4. double click on right filed of \"modules\"
@@ -151,7 +151,7 @@ To enable IAP module
 
 To test in-app purchase on android device,
 
-1. Need to add \"com.android.vending.BILLING\" permission at Export > Android > User Permissions
+1. Need to add \"com.android.vending.BILLING\" permission at Project > Export > Android > User Permissions
 2. Export APK and upload it as alpha or beta stage to Google Play Developer Console and publish it.
     (It's not published to public, but you and tester can access it.)
 3. There should be activated in-app item