Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

(Difference between revisions)

OpenIAB on Nokia X

From Wiki
Jump to: navigation, search
BuildNokia (Talk | contribs)
(BuildNokia - subedit for clarity)
BuildNokia (Talk | contribs)
(BuildNokia -)
Line 26: Line 26:
 
== How to use OpenIAB in a Nokia X application ==
 
== How to use OpenIAB in a Nokia X application ==
  
First, you'll need to clone the GIT repository as follows:
+
First, you'll need to clone the git repository as follows:
  
 
<pre>$ git clone https://github.com/nokia-developer/OpenIAB</pre>
 
<pre>$ git clone https://github.com/nokia-developer/OpenIAB</pre>
Line 45: Line 45:
 
</code>
 
</code>
  
https://github.com/nokia-developer/OpenIAB/blob/master/samples/trivialdrive/src/org/onepf/trivialdrive/MainActivity.java#L110
+
You can get a live version of this code [https://github.com/nokia-developer/OpenIAB/blob/master/samples/trivialdrive/src/org/onepf/trivialdrive/MainActivity.java#L110 on github.]
 +
 
  
 
== Summary ==
 
== Summary ==

Revision as of 18:36, 2 April 2014

This article explains how to use OpenIAB, an open source library wrapping in-app payment APIs used in different application stores, on the Nokia X software platform. The Nokia X specific code in OpenIAB utilises the Nokia In-App Payment API, which is integrated with the Nokia Store.

Article Metadata
Article
Created: ()
Last edited: BuildNokia (02 Apr 2014)

Contents

Introduction

How to use OpenIAB in a Nokia X application

First, you'll need to clone the git repository as follows:

$ git clone https://github.com/nokia-developer/OpenIAB


More information can be found on the github wiki.

Mapping the product ID

Here is an example that shows how to map your product ID between multiple stores:

static {
OpenIabHelper.mapSku(SKU_PREMIUM, OpenIabHelper.NAME_NOKIA, "1023608");
OpenIabHelper.mapSku(SKU_GAS, OpenIabHelper.NAME_NOKIA, "1023609");
OpenIabHelper.mapSku(SKU_INFINITE_GAS, OpenIabHelper.NAME_NOKIA, "1023610");
}

You can get a live version of this code on github.


Summary

Version Hint

Windows Phone: [[Category:Windows Phone]]
[[Category:Windows Phone 7.5]]
[[Category:Windows Phone 8]]

Nokia Asha: [[Category:Nokia Asha]]
[[Category:Nokia Asha Platform 1.0]]

Series 40: [[Category:Series 40]]
[[Category:Series 40 1st Edition]] [[Category:Series 40 2nd Edition]]
[[Category:Series 40 3rd Edition (initial release)]] [[Category:Series 40 3rd Edition FP1]] [[Category:Series 40 3rd Edition FP2]]
[[Category:Series 40 5th Edition (initial release)]] [[Category:Series 40 5th Edition FP1]]
[[Category:Series 40 6th Edition (initial release)]] [[Category:Series 40 6th Edition FP1]] [[Category:Series 40 Developer Platform 1.0]] [[Category:Series 40 Developer Platform 1.1]] [[Category:Series 40 Developer Platform 2.0]]

Symbian: [[Category:Symbian]]
[[Category:S60 1st Edition]] [[Category:S60 2nd Edition (initial release)]] [[Category:S60 2nd Edition FP1]] [[Category:S60 2nd Edition FP2]] [[Category:S60 2nd Edition FP3]]
[[Category:S60 3rd Edition (initial release)]] [[Category:S60 3rd Edition FP1]] [[Category:S60 3rd Edition FP2]]
[[Category:S60 5th Edition]]
[[Category:Symbian^3]] [[Category:Symbian Anna]] [[Category:Nokia Belle]]

85 page views in the last 30 days.
×