In-app purchases with cocos2d-x

I work within a team, we’re in the point to finish our first cocos2d-x c++ application.

We want to add in-app purchases. for what, we made a search for this. We found 2 solutions:
1- The native solution
2- SOOMLA
What do you think about this, and according to you what is the best solution for in-app purchases with cocos2d-x.

Best regards.

I tried soomla but its not yet fully compatible with v3.0 and it kept crashing after purchase popup was closed.Soomla is very good because it has storage management for your purchases.

I ended up using https://github.com/onepf/OpenIAB for android which worked perfectly but you will have to store purchases in a secure way by yourself.

For iOS i used http://www.raywenderlich.com/23266/in-app-purchases-in-ios-6-tutorial-consumables-and-receipt-validation

1 Like

@adrian_dsl wrote:

I tried soomla but its not yet fully compatible with v3.0 and it kept crashing after purchase popup was closed.Soomla is very good because it has storage management for your purchases.

I ended up using GitHub - onepf/OpenIAB: Open In-App Billing for Google Play, SlideMe, Amazon Store, Nokia Store, Samsung Apps, Yandex.Store, Appland, Aptoide, AppMall and Fortumo. for android which worked perfectly but you will have to store purchases in a secure way by yourself.

For iOS i used In-App Purchases in iOS 6 Tutorial: Consumables and Receipt Validation | Kodeco

Could you explain more?

Have a look at last code at: https://github.com/soomla/cocos2dx-store.
It has a branch, updated to work with last v3.1.

Soomla is more than just IAP-solution. It provides an easy way to define a virtual economy of your game. We are (http://vedidev.com), use Soomla in all our IAP-solutions.

Does soomla support latest stable release cocos2d-x 3.4?

Cocos2d-x SDKBox provide in app purchase… You can try this.
http://cocos2d-x.org/sdkbox

1 Like