godot/platform/android
volzhs 3fbaa479e3 improve android payments
GodotPaymentV3 currently consumes purchased item right after purchasing.
But, some in-app item should not consume like "remove ads permanently"
So, I added "setAutoConsume(boolean)", "requestPurchased()",
"consume(sku_string)".
AutoConsume is true by default as before.

usage:

func _ready():
	var payment = Globals.get_singleton("GodotPayments")
	payment.setPurchaseCallbackId(get_instance_ID())
	payment.setAutoConsume(false) # default : true
	payment.requestPurchased() # callback : has_purchased
	payment.purchase("item_name") # callback : purchase_success,
purchase_fail, purchase_cancel, purchase_owned
	payment.consume("item_name") # callback : consume_success

func purchase_success(receipt, signature, sku):
	print("purchase_success : ", sku)

func purchase_fail():
	print("purchase_fail")

func purchase_cancel():
	print("purchase_cancel")

func purchase_owned(sku):
	print("purchase_owned : ", sku)

func consume_success(receipt, signature, sku):
	print("consume_success : ", sku)

func has_purchased(receipt, signature, sku):
	if sku == "":
		print("has_purchased : nothing")
	else:
		print("has_purchased : ", sku)
2015-10-28 15:48:37 +09:00
..
export Ability to visually debug geometry visually: 2015-09-20 13:03:46 -03:00
globals 2D Rewrite Step [1] 2015-01-10 17:35:26 -03:00
java improve android payments 2015-10-28 15:48:37 +09:00
libs android remove "gen" folder from git. 2015-09-16 16:28:01 +04:30
android_native_app_glue.c GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
android_native_app_glue.h fixed broken comment block 2015-05-03 02:04:30 +02:00
AndroidManifest.xml.template -Fixed android export options (screen sizes, orientation should work) 2015-05-01 21:13:20 -03:00
audio_driver_jandroid.cpp Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
audio_driver_jandroid.h Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
audio_driver_opensl.cpp ran cppcheck, found unused variables 2015-09-16 15:35:30 -05:00
audio_driver_opensl.h Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
cpu-features.c ran cppcheck, found unused variables 2015-09-16 15:35:30 -05:00
cpu-features.h 3D Physics Rework, Other Stuff 2014-09-15 11:33:30 -03:00
detect.py Merge pull request #2474 from masoudbh3/android-armeabi-v7a 2015-10-17 10:20:47 -03:00
dir_access_android.cpp Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
dir_access_android.h Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
dir_access_jandroid.cpp fixes in handling of DirAccess for resource path on Android, fixes #1447 2015-04-28 09:38:07 -03:00
dir_access_jandroid.h fixes in handling of DirAccess for resource path on Android, fixes #1447 2015-04-28 09:38:07 -03:00
file_access_android.cpp merged some stuff for okam 2015-09-03 23:24:55 -03:00
file_access_android.h merged some stuff for okam 2015-09-03 23:24:55 -03:00
file_access_jandroid.cpp merged some stuff for okam 2015-09-03 23:24:55 -03:00
file_access_jandroid.h Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
godot_android.cpp Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
ifaddrs_android.cpp Making Godot Easier to Use.. 2014-05-24 01:35:47 -03:00
ifaddrs_android.h Making Godot Easier to Use.. 2014-05-24 01:35:47 -03:00
java_bind.cpp More 3D Improvements 2014-05-29 10:56:39 -03:00
java_bind.h More 3D Improvements 2014-05-29 10:56:39 -03:00
java_class_wrapper.cpp 3D Physics and Other Stuff 2014-09-02 23:13:40 -03:00
java_class_wrapper.h 3D Physics and Other Stuff 2014-09-02 23:13:40 -03:00
java_glue.cpp merged some stuff for okam 2015-09-03 23:24:55 -03:00
java_glue.h merged some stuff for okam 2015-09-03 23:24:55 -03:00
logo.png GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
os_android.cpp merged some stuff for okam 2015-09-03 23:24:55 -03:00
os_android.h Added ability to set custom mouse cursors. Not hardware accelerated yet. 2015-09-24 18:06:15 -03:00
platform_config.h Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
project.properties.template -Added android immersive mode, fixes #303 2015-04-17 16:18:46 -03:00
SCsub merges from okam repo 2015-03-03 14:39:13 -03:00
sign.sh Making Godot Easier to Use.. 2014-05-24 01:35:47 -03:00
thread_jandroid.cpp Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
thread_jandroid.h Updated copyright year in all headers 2015-04-18 14:38:54 -03:00