title: How do you maintain 2 sets of in-app purchase code for Google Play and Amazon App Store
body: <p>From the past 1 year survey (Not sure it is still valid), it seems that developers generate more revenue in Amazon App Store than Google Play. That's surprising, as I thought Google Play is found in every Android devices. It suppose to generate most revenue. Not sure why.</p>
  
  <p>Hence, I was planning to give a try in Amazon App Store. However, I realize I need to maintain 2 set of in-app purchase code, for Google Play and Amazon App Store?</p>
  
  <p>I was wondering, <strong>how do most of you maintain such code?</strong> Besides using <a href="https://github.com/christopherperry/RoboBillingLibrary" rel="nofollow">RoboBillingLibrary</a>. I still try not to rely on 3rd party library, unless I really have to. As it is not easy to have a stable in-app purchase flow. I receive crash report once a while regarding in-app purchase, and have no idea why. Although almost all the code is just merely copy n paste from official code example.</p>