Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

use in-app purchases plugins for local app market
Started by amirmatinpoor Apr 10 2017 07:45 AM

1 reply to this topic
in-app purchases google iap iap badger
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

amirmatinpoor

[GLOBAL: userInfoPane.html]
amirmatinpoor
  • Observer

  • 5 posts
  • Corona SDK

Hi dear Corona team and users

I want to publish my app on an android market in my country and China.
this market uses the google IN-APP BILLING VERSION 3 to provide in- app  purchases for developers .however they changed 3 lines
of TrivialDrive example code for this purpose that the app connect to their server against google play .
these changes are as follows:


1) in AndroidManifest.xml

<uses-permission android:name="com.android.vending.BILLING"/>
changed to
<uses-permission android:name="com.farsitel.bazaar.permission.PAY_THROUGH_BAZAAR"/>

2,3) in IabHelper class

Intent serviceIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
serviceIntent.setPackage("com.android.vending");

changed to
Intent serviceIntent = new Intent("ir.cafebazaar.pardakht.InAppBillingService.BIND");
  serviceIntent.setPackage("com.farsitel.bazaar");

With these explanation !; how can i use corona  IAP plugins to implement and adapting with this changes ?



 



[TOPIC: post.html]
#2

arashmobileboy

[GLOBAL: userInfoPane.html]
arashmobileboy
  • Observer

  • 24 posts
  • Corona SDK

hi amir :)

you should use corona enterprise, you cannot do that in corona sdk




[topic_controls]
[/topic_controls]