Not getting Sku details from query - Godot

The game seems to send the signal to the _on_sku_details_query_completed but doesn’t go past the For loop we set to go through the Skus.

func _on_sku_details_query_completed(skus):
	MyUtility.add_log_msg("Sku details query completed")
	for sku in skus:
		MyUtility.add_log_msg("Sku:")
		MyUtility.add_log_msg(str(sku))
func purchase_skin():
	if google_payment:
		var response = google_payment.purchase(new_skin_sku)
		MyUtility.add_log_msg("Purchase attempted, response " + str(response.status))
		if response.status != OK:
			MyUtility.add_log_msg("Error purchasing skin!")

if you need to check more code let me know

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms