Skip to content

Commit 20da4ea

Browse files
Fix signal name mismatch in doc (#98)
1 parent db97a98 commit 20da4ea

File tree

5 files changed

+10
-118
lines changed

5 files changed

+10
-118
lines changed

demo/project.godot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
config_version=5
1010

11+
[animation]
12+
13+
compatibility/default_parent_skeleton_in_mesh_instance_3d=true
14+
1115
[application]
1216

1317
config/name="godot billing demo"

demo/store.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func _init() -> void:
2121
billing_client.connect_error.connect(_on_connect_error)
2222
billing_client.query_product_details_response.connect(_on_query_product_details)
2323
billing_client.query_purchases_response.connect(_on_query_purchases)
24-
billing_client.on_purchase_updated.connect(_on_purchases_updated)
24+
billing_client.on_purchase_updated.connect(_on_purchase_updated)
2525

2626
billing_client.start_connection()
2727

@@ -95,7 +95,7 @@ func _on_query_purchases(result: Dictionary) -> void:
9595
_process_purchase(purchase, true)
9696

9797

98-
func _on_purchases_updated(result: Dictionary) -> void:
98+
func _on_purchase_updated(result: Dictionary) -> void:
9999
if result.response_code != BillingClient.BillingResponseCode.OK:
100100
_show_error("Purchase update failed", result.response_code, result.debug_message)
101101
return

demo/store_bck.gd

Lines changed: 0 additions & 111 deletions
This file was deleted.

demo/store_bck.gd.uid

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/quickstart.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ else:
125125
print("response_code: ", result.response_code, "debug_message: ", result.debug_message)
126126
```
127127

128-
The result of the purchase will be sent through the `on_purchases_updated` signal.
128+
The result of the purchase will be sent through the `on_purchase_updated` signal.
129129

130130
```gdscript
131-
func _on_purchases_updated(result: Dictionary):
131+
func _on_purchase_updated(result: Dictionary):
132132
if result.response_code == BillingClient.BillingResponseCode.OK:
133133
print("Purchase update received")
134134
for purchase in result.purchases:
@@ -140,7 +140,7 @@ func _on_purchases_updated(result: Dictionary):
140140

141141
### Processing a purchase item
142142

143-
The `query_purchases_response` and `on_purchases_updated` signals provide an array of purchases in Dictionary format.
143+
The `query_purchases_response` and `on_purchase_updated` signals provide an array of purchases in Dictionary format.
144144
The purchase Dictionary includes keys that map to values of the Google Play Billing [Purchase](https://developer.android.com/reference/com/android/billingclient/api/Purchase) class.
145145

146146
Purchase fields:
@@ -259,7 +259,7 @@ You need to acknowledge new subscription purchases, but not automatic subscripti
259259
If you support upgrading or downgrading between different subscription levels, you need to use `update_subscription()` to call the subscription update flow
260260
to change an active subscription.
261261

262-
Like `purchase()`, results are returned by the `on_purchases_updated` signal.
262+
Like `purchase()`, results are returned by the `on_purchase_updated` signal.
263263

264264
These are the parameters of `update_subscription()`:
265265

0 commit comments

Comments
 (0)