Cocos Creator and iap purchases

Hello.
I try to implement iap purchases for cocos creator (editor version 3.5.0) and have some troubles.
I try to use SDKBox, but after compile android APK and launch it i have an error that native method not found.
After some searching i understand that all manuals corresponds to directory like proj.android and Android.mk files, but i have nothing like that. It seems like all manuals was for 2.0 editor.

So the question - how can i implement andoird and ios purchases in cocos creator 3.5?

Please help…

So after some research i found that CMakeLists in native/android dont include any items like

add_definitions(-DSDKBOX_ENABLED)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/app/jni/sdkbox/)
target_link_libraries(${LIB_NAME} ext_sdkbox)

I add it manualy, but it seems there are more missings

SDKBox is no longer supported in cocos creator3.5.

We do offer a complete IAP system on our platform Upload Your Game On Our Free HTML5 Game Hosting and Earn Money

The entire system is built into the platform so all you need to do is make an API call to check if the user owns the item/feature or not.

good job

1 Like

Wow… So only solution is implementing it in native code?

You got to write some native codes yourself.

We have already done that and it is working well for us. At that time, we were using CC.3.4.2.

Hi @StudioAMK, can you post the reference of native code here

2 Likes