godot/platform
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
..
android improve android payments 2015-10-28 15:48:37 +09:00
bb10 Merge pull request #2479 from firefly2442/cppcheck-unusedvars 2015-10-17 10:25:36 -03:00
flash rasterizer comparison fix 2015-10-18 20:28:51 -05:00
haiku Haiku: fix build 2015-10-17 15:41:01 +03:00
iphone Added setting for CADisplayLink on iOS, so you no longer need to recompile to change it 2015-10-22 17:31:09 -07:00
isim Fix iOS Simulator SDK path for isim platform. 2015-01-22 22:19:45 +01:00
javascript Add support for Opus audio format 2015-10-02 14:25:38 -03:00
nacl Add OS.get_time_zone_info function 2015-06-06 05:57:33 +02:00
osx Added specific get_locale to OSX platform 2015-10-16 19:42:26 +02:00
server Added ability to set custom mouse cursors. Not hardware accelerated yet. 2015-09-24 18:06:15 -03:00
windows REUSE_ADDR under windows platform 2015-10-13 13:11:33 +08:00
winrt newline fixes 2015-10-08 15:00:40 -03:00
x11 Made the Atom net_wm_icon local 2015-10-26 01:36:27 +08:00