支付接口已经独立封装,只需要在自己的Activity调用相关接口1,在onCreate调用GooglePlayPurchase.instance().initGoogleData(this);2,在onActivityResult调用GooglePlayPurchase.instance().onActivityResult(requestCode,resultCode,data);3,在onDestroy调用GooglePlayPurchase.instance().onDestroy();4,购买指定商品只需要调用:GooglePlayPurchase.instance().buy(pid);//pid就是后台对应的productID别