Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Android (Google Play) IAP Subscriptions
Started by anaqim Mar 05 2019 01:13 PM

2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

anaqim

[GLOBAL: userInfoPane.html]
anaqim
  • Contributor

  • 768 posts
  • Corona SDK

Hi,

 

Searching, testing and trying but seem to be stuck in loadProducts where i cant seem to get any returned products, however i do get 1 returned as invalidProduct, which I dont understand.

 

The tutorial in the Corona documentation only got me this far, so I wonder if anyone got this working and wouldnt mind sharing a snippet or two, to get me going?

 

Any hints are appreciated.  :)

 

 



[TOPIC: post.html]
#2

david79

[GLOBAL: userInfoPane.html]
david79
  • Observer

  • 18 posts
  • Corona SDK

Subscriptions *used* to work on Android, but now I see that the store.purchase method says "This call does not work for subscription purchases."

 

This link https://stackoverflow.com/questions/16377755/google-play-in-app-purchase-returns-error-code-1008-null-puchasedata-or-datasi says that "If you call mHelper.launchPurchaseFlow(...) with an SKU that is registered as a subscription on Google Developer Console it will result in the error: IAB returned null purchaseData or dataSignature (response -1008:Unknown error).

If you have a SKU that is registered as an subscription you have to use the method: mHelper.launchSubscriptionPurchaseFlow(...) instead."

So yeah, I have the same problem 


[TOPIC: post.html]
#3

david79

[GLOBAL: userInfoPane.html]
david79
  • Observer

  • 18 posts
  • Corona SDK

Ahhh this is probably relevant :D https://forums.coronalabs.com/topic/72216-google-iap-product-details-for-subscription-is-not-showing-up-need-little-info/




[topic_controls]
[/topic_controls]