What is the best way for implementing subscription IAP in google play store?

I am using cocos2d-x 3.8.1 and I am trying to implement subscription in app purchase for Google Play Store (and later, for other Chinese app stores). First I took a look into SDKBOX, but it doesn’t seem to support subscription model since enum IAP_Type has only CONSUMABLE and NON_CONSUMABLE. And it now only support Google Play Store and Amazon App Store.
So I took a look into cocos2d/plugin/plugins folder. And I thought I found something that I need. There are plugins for GooglePlay, AliPay and QH360. But there is no documentation for these plugin.
I found a tutorial for AdMob plugin here and another tutorial for js version here. So I tried to apply the plugin but failed to compile with this error

/proj.android/../cocos2d/external/flatbuffers/Android.mk: Cannot find module with tag 'protocols/android' in import path    
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?   

Maybe the tutorials are for older version (3.4) and I am working with 3.8.1.
I also found a soomla’s plugin but it seems that they will shutdown services soon.
Should I implement it from scratch? or is there another solution?

Hi, this is really an old post - are you implementing SOOMLA, right now? I’m still working with soomla - it is so powerful… and I’m searching for user who are using it to…