cocos2d-x lua怎样接入支付,广告?

是先用c++调用jni,然后lua再调用c++接口么?