Hi,

I'm planning to add IAP(In-App Payment) support for Crosswalk Android. By this 
user can sell digital goods, including one-time items and recurring 
subscriptions.

This feature will be implemented based on Google In-app Billing 
API(http://developer.android.com/google/play/billing/billing_overview.html). 
Only Version 3 API is planned to be supported, as Google states that "In-app 
Billing Version 2 is superseded. Please migrate to Version 3 at your earliest 
convenience."

Affected component: Android port 
(runtime/android/java/src/org/xwalk/runtime/extension/api/)

Related feature in Jira: https://crosswalk-project.org/jira/browse/XWALK-594

Target Release: v5

Support from other venders: Cordova has a PhoneGap plugin for In-app Billing: 
https://github.com/poiuytrez/AndroidInAppBilling/

Planned implementation:

* addProducts(skus) - Load the available product(s) to inventory. It is for 
updating inventory if you need to add more skus.
* getAvailableProducts() - The list of the available product(s) in inventory.
* getPurchases() - The list of products owned by user are retrieved from the 
local database.
* buy(productId) - Purchase an item. Note that you cannot buy an item that you 
already own. Example of product id: "sword_001".
* subscribe(subscriptionId) - Subscribe to an item. Example of subscription id: 
"premium_001".
* consumePurchase(productId) - Consume an item. Note that you can only consume 
an item that you own. Example of consumable items : food, additional life pack, 
etc. Example of non-consumable item: levels pack. And you can't consume a 
subscribed item.

As there is no spec for IAP support, please expect that these functions might 
change with ongoing discussion and implementation.

Regards,
Deqing



_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to