Android Question Google In-App Billing Library Question (Applying it to a different market??)


Active Member
Licensed User
Hello. I'll try to be brief and clear in order to avoid causing headaches!
Any help would be greatly appreciated.
I want to have In-App Billing in my app, but instead of Google Play, it should connect to Cafe Bazaar (Iran's primary market). The good thing is that according to that market, I can do everything just like it's done with Google Play, except 3 small changes in the code.
Would you please take a look at the description for these required changes and tell me if I can use B4A's Google Billing library to connect to Bazaar? (or do I need to write my own library for it! that'd be terrible!)

(note: the explanation below refers to Google's payment example TrivialDrive.)
1. Edit
👉 change the line: <uses-permission android:name="" />
👉 to: <uses-permission android:name="com.farsitel.bazaar.permission.PAY_THROUGH_BAZAAR"/>
2. Edit (a class in the TrivialDrive app) :
👉 change these lines: Intent serviceIntent = new Intent("");
👉 to: Intent serviceIntent = new Intent("ir.cafebazaar.pardakht.InAppBillingService.BIND");

Am I correct to assume that this means I can use B4A's library for this other market billing service?
Thank you sooo much in advance.