123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- [gd_scene load_steps=2 format=2]
- [ext_resource path="res://iap_demo.gd" type="Script" id=1]
- [node name="Control" type="Control"]
- anchor_left = 0.0
- anchor_top = 0.0
- anchor_right = 1.0
- anchor_bottom = 1.0
- rect_pivot_offset = Vector2( 0, 0 )
- rect_clip_content = false
- mouse_filter = 0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- script = ExtResource( 1 )
- [node name="purchase" type="Button" parent="."]
- anchor_left = 0.0
- anchor_top = 0.0
- anchor_right = 0.0
- anchor_bottom = 0.0
- margin_left = 40.0
- margin_top = 40.0
- margin_right = 250.0
- margin_bottom = 120.0
- rect_pivot_offset = Vector2( 0, 0 )
- rect_clip_content = false
- mouse_filter = 0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- toggle_mode = false
- enabled_focus_mode = 2
- shortcut = null
- group = null
- text = "Purchase in app"
- flat = false
- [node name="consume" type="Button" parent="."]
- anchor_left = 0.0
- anchor_top = 0.0
- anchor_right = 0.0
- anchor_bottom = 0.0
- margin_left = 40.0
- margin_top = 150.0
- margin_right = 250.0
- margin_bottom = 230.0
- rect_pivot_offset = Vector2( 0, 0 )
- rect_clip_content = false
- mouse_filter = 0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- toggle_mode = false
- enabled_focus_mode = 2
- shortcut = null
- group = null
- text = "Consume in app"
- flat = false
- [node name="request" type="Button" parent="."]
- anchor_left = 0.0
- anchor_top = 0.0
- anchor_right = 0.0
- anchor_bottom = 0.0
- margin_left = 40.0
- margin_top = 260.0
- margin_right = 250.0
- margin_bottom = 340.0
- rect_pivot_offset = Vector2( 0, 0 )
- rect_clip_content = false
- mouse_filter = 0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- toggle_mode = false
- enabled_focus_mode = 2
- shortcut = null
- group = null
- text = "Request purchased"
- flat = false
- [node name="query" type="Button" parent="."]
- anchor_left = 0.0
- anchor_top = 0.0
- anchor_right = 0.0
- anchor_bottom = 0.0
- margin_left = 40.0
- margin_top = 370.0
- margin_right = 250.0
- margin_bottom = 450.0
- rect_pivot_offset = Vector2( 0, 0 )
- rect_clip_content = false
- mouse_filter = 0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- toggle_mode = false
- enabled_focus_mode = 2
- shortcut = null
- group = null
- text = "Query in app items"
- flat = false
- [node name="alert" type="AcceptDialog" parent="."]
- visible = false
- anchor_left = 0.0
- anchor_top = 0.0
- anchor_right = 0.0
- anchor_bottom = 0.0
- margin_left = 290.0
- margin_top = 60.0
- margin_right = 700.0
- margin_bottom = 290.0
- rect_pivot_offset = Vector2( 0, 0 )
- rect_clip_content = false
- mouse_filter = 0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- popup_exclusive = false
- window_title = "Alert!"
- resizable = false
- dialog_hide_on_ok = true
- [node name="Label" type="Label" parent="."]
- anchor_left = 0.0
- anchor_top = 0.0
- anchor_right = 0.0
- anchor_bottom = 0.0
- margin_left = 300.0
- margin_top = 40.0
- margin_right = 932.0
- margin_bottom = 207.0
- rect_pivot_offset = Vector2( 0, 0 )
- rect_clip_content = false
- mouse_filter = 2
- size_flags_horizontal = 2
- size_flags_vertical = 0
- text = "\"iap\" is located in Autoloads. See Project > Project Settings > AutoLoad
- To enable IAP module
- 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\"
- 5. write \"org/godotengine/godot/GodotPaymentV3\"
- To test in-app purchase on android device,
- 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
- 4. Any changes on Developer console will take 2~3 hours to take effect"
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
|