Update description for setting up android iap

This commit is contained in:
volzhs
2018-07-19 12:47:01 +09:00
parent cfe4b0ec4e
commit ab07f94911
3 changed files with 5 additions and 5 deletions

View File

@@ -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):

View File

@@ -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()

View File

@@ -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