Android Purchase subscription and introductory price

后端 未结 2 625
面向向阳花
面向向阳花 2021-02-05 23:04

Google came with with the idea of introductory price (https://support.google.com/googleplay/android-developer/answer/140504?hl=en).

My question is related to its API. I

相关标签:
2条回答
  • 2021-02-05 23:57

    Finally i used The getPurchaseHistory() method from In-app billing. This method returns the most recent purchase made by the user for each SKU, even if that purchase is expired, canceled, or consumed.

    So if the SKU isn't on this return, the intropricing is available.

    0 讨论(0)
  • 2021-02-06 00:00

    I just found this recently at this link https://developer.android.com/google/play/billing/billing_reference.html#billing-codes

    Listed in the Billing Details API Reference section, there are extra fields in the response that only appear if there is an introductory price set. introductoryPrice for example gives a string like "$9.99". You can just check if that field is set, and if it is then there is an introductory rate available, you can also get things like the introductory price period and number of cycles it applies to.

    0 讨论(0)
提交回复
热议问题