Skip to content

dgsdestinygamestudios/godot-google-play-billing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

godot-google-play-billing

Google Play Billing 7.0.0 for Godot 4+

Usage

1 - Add godot_google_play_billing folder to your project's addons folder.
2 - Go to Project/Project Settings/Plugins and enable the plugin.
3 - Open billing.gd file.
4 - Populate const CONSUMABLE_ITEMS: PackedStringArray, const NON_CONSUMABLE_ITEMS: PackedStringArray and const SUBSCRIPTION_ITEMS: PackedStringArray for your own use.
5 - Add reward functionality under the _handle_purchase(purchase_token: String) function.
6 - Calling Billing.purchase(product_id: String) anywhere will initiate the process.