3.Payment
3.1 Set payment callback
Android
PayNative.setPayResultCallback(new PayManager.PayCallback() {
@Override
public void onPayFinish(PayParams params) {
// TODO Auto-generated method stub
switch (params.getPayResult()){
//pay success
case PayDef.PAY_RESULT_SUCCESS:
break;
//pay fail
case PayDef.PAY_RESULT_FAIL:
break;
//cancel pay
case PayDef.PAY_RESULT_CANCEL:
break;
}
}
@Override
public void onInitPayAgentFinish(BasePayAgent arg0) {
// TODO Auto-generated method stub
}
});iOS
3.2 Does the market support exit?(only Android)
Android(Necessary)
Unity
3.3 Get payment button type
Android
iOS
Unity
3.4 Get the market type
Android
iOS
Unity
3.5 Get package control information
Android
iOS
Unity
3.6 Call payment
Android
iOS
Unity
3.7 Repay props
iOS
3.7 Need more game buttons
Android
Unity
3.8 Open more games
Android
Unity
3.9 Jump to an app details page in the store
Android
iOS
Unity
3.10 Jump to the store details page of the current app
Android
iOS
Unity
最后更新于