If you have implemented Google Play IAP and you desire to add Myket Payment solution to your product, you are just 3 little steps behind. A 3-minor-adjustment by which you will be able to transfer a Game/Application working with Google Play IAP to Myket IAP.
First Step (Adjustment 1):
In file AndroidManifest.xml find the string:
<uses-permission android:name="com.android.vending.BILLING" />
And substitute that for:
<uses-permission android:name="ir.mservices.market.BILLING" />
Second Step (Adjustment 2):
In class IabHelper find this piece of code:
Intent serviceIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND"); serviceIntent.setPackage("com.android.vending");
And replace it with below string:
Intent serviceIntent = new Intent("ir.mservices.market.InAppBillingService.BIND"); serviceIntent.setPackage("ir.mservices.market");
And replace it with below string:
Third Step (Adjustment 3):
Receive the Public Key of your Game/Application from Myket Developer Panel and use it when building IabHelper:
mHelper = new IabHelper(context, base64EncodedPublicKey);
Eventually, after implementing these changes, Test your Game/Application.
it is to be noted that Myket needs to be installed on testing device already.