谁可以帮我弄个谷歌浏览器支付宝控件支付或账号

终于不用翻墙啦!Google Play推出玩家ID账号系统
来源:5253时间: 09:49:00作者:
游戏平台:Android游戏大小:42.11M
Google Play已经确定回归中国大陆市场,不过不少玩家担心的是,Google Play账号要怎么注册呢,会不会又要登陆Gmail关联Google+什么的,话说虽然Google Play回归了中国,Google可是依然被拒之门外的,连登陆个Gmail都要各种翻墙。不过现在,Google官方公布了一个好消息,Play将推出全新玩家ID账号系统,这个ID不必与已有账户关联便可和账户好友共同游戏,昵称也将更加自由。
之前,我们要使用Google Play Games,必须先注册一个Google+或者Gmail的账号,然后用这个账号登录游戏,才可以享受Google Play Games的服务。而现在,我们只要打开Google Play Games,就可以直接进行注册,也可以使用“龙傲天、叶良辰”等霸气昵称,而不是之前Google+或者是Gmail的账号相关联的真实名字,作为男生,Google+好友也不会看到你在玩奇迹暖暖之类的游戏,更人性化也更保护用户。
不过,谷歌这次的改革还不止于此。除了摆脱Google+束缚外,还了用户的注册流程。玩家只要拥有了一个游戏相关账号,那么其他的游戏都可以共享这个账号,不需要再次注册,一个账号便可玩遍所有安卓游戏。
毕竟目前国内安卓渠道市场现状四分五裂,不同平台都有着各自的账号系统,像360账号啦、账号啦,其实不论是游戏厂商还是玩家都有一个“统一平台”梦,方便厂商处理玩家数据,也方便玩家对游戏及账号进行。Google Play的新ID账号系统无疑可以实现这一梦想,不过面对国内各大安卓平台的竞争,实现梦想的过程可能会像Google入华一样举步维艰充满阻碍。
Google Play预计将在今年3月份入华,并将支持宝支付方式,无论是玩家ID账号系统,还是更接地气的支付方式,都是Google适应市场迈出的重大一步,我们也希望Google Play能给国内混乱的安卓游戏市场带来实质性改变。
本站为防止低俗内容出现,用户发表的评论需经过审核,谢谢 !
大小:40.17MB益智休闲大小:MB策略游戏大小:MB卡牌游戏大小:MBRPG游戏大小:MB动作游戏大小:177MB策略游戏大小:MB卡牌游戏大小:12.6MB动作游戏大小:12.6MB动作游戏大小:80.27MB策略游戏
西瓜动漫网ios版
西瓜动漫网
万能直播魔盒ios版
万能直播魔盒
柚色影视破解版
2347影视ios版
豆豆直播破解版(光明小牛奶)
([已注销])
(咕啦萨亚)
第三方登录:> 博客详情
摘要: google支付接口被刷以及解决方案 google支付回调验证
google支付查单
google支付接口被刷以及解决方案
google支付回调验证
Google支付问题
&&&&&&&& ,挂机的日本服务器出现google支付被刷单现象,虽然目前进行的修补,但是这个问题并没有完全从根源上解决。并且公司以前的GooglePlay支付也有不完善的地方,在SDK端给支付回调发送支付信息后,支付回调程序没有调用Google API进行订单验证。因此Google支付流程需要进行完善。
Google支付解决方案
&&&&&&&& 上面的支付问题,Google有自己的解决方案,就是根据订单号去向Google API发送验证申请,Google API会返回订单相关信息。可以根据这个信息和SDK返回的信息进行对比验证。
&&&&&&&& 对于申请Google账号之类的流程,相信运营已经很清楚了,但是使用Google API还需要使用Google Developer Console创建Web Application账户,而后获取到client_id、client_secret、refresh_token。具体流程见下面:
1.&&&&&& 登陆
,地址:/apis/console/
2.&&&&&& 在APIs & auth 项中找到 Credentials ,点击创建一个auth2.0 的web 应用
其中4的地址一定是 可用域名 + /oauth2callback
创建完后,可以获得,client_id, client_secret, redirect_url
3.&&&&&& 获取Authorization code
google中心在登陆状态,打开新页面输入如下地址:
/o/oauth2/auth?scope=/auth/androidpublisher&response_type=code&access_type=offline&redirect_uri={REDIRECT_URIS}&client_id={CLIENT_ID}
将蓝色部分根据相应的值进行替换;
这时会提示你是否要授权,点击授权,url地址栏会自动跳转,之后会获得code例如:/oauth2callback?code=4/CpVOd8CljO_gxTRE1M5jtwEFwf8gRD44vrmKNDi4GSS.kr-GHuseD-oZEnp6UADFXm0E0MD3FlAI
4.&&&&&& 利用code获取refresh_token, 这里需要post请求
请求地址:/o/oauth2/token
请求参数:code, client_id, client_secret, redirect_uri, grant_type
其中 grant_type 值为 authorization_code
第一次发起请求得到的JSON字符串如下所示,以后再请求将不再出现refresh_token(长令牌,一般不会失效),需要保存好refresh_token,可以存放到配置文件(或者写到数据库),以备后用。
expires_in是指access_token的时效,为3600秒
&&& "access_token": "ya29.3gC2jw5vm77YPkylq0H5sPJeJJDHX93Kq8qZHRJaMlknwJ85595eMogL300XKDOEI7zIsdeFEPY6zg",
&&& "token_type": "Bearer",
&&& "expires_in": 3600,
&&& "refresh_token": "1/FbQD448CdDPfDEDpCy4gj_m3WDr_M0U5WupquXL_o"
在获取到client_id、client_secret、refresh_token后,我们的支付回调程序就可以使用订单号去请求Google Api进行验证。
Google支付回调验证流程
&&&&&&&& 通过上一步获取到client_id、client_secret、refresh_token之后,支付回调程序就可以调用google api进行支付验证。具体流程如下:
1.&&&&&& 获取access_token。
请求地址:/o/oauth2/token
请求方式:post
请求参数:client_id, client_secret, refresh_toke, grant_type
grant_type 值固定为 refresh_token
返回:json
Using the refresh token
Each access token is only valid for a short time. Once the current access token expires, the server will need to use the refresh token to get a new one. To do this, send a POST request to /o/oauth2/token with the following fields set:
grant_type=refresh_token
client_id=&the client ID token created in the APIs Console&
client_secret=&the client secret corresponding to the client ID&
refresh_token=&the refresh token from the previous step&
A successful response will contain another access token:
"access_token" : "ya29.AHES3ZQ_MbZCwac9TBWIbjW5ilJkXvLTeSl530Na2",
"token_type" : "Bearer",
"expires_in" : 3600,
The refresh token thus allows a web server continual access to the API without requiring an active login to a Google account.
2.&&&&&& 通过获得access_token 就可以请求谷歌的 API 接口,获得订单状态
在这里我所需要获取的是我在应用内给GooglePlay支付的购买信息,此类信息包含以下几个属性:(可参考Google Play Developer API下的)
& & & & A ProductPurchase resource indicates the status of a user's inapp product purchase.
请求接口:/androidpublisher/v2/applications/packageName/purchases/products/productId/tokens/purchaseToken?access_token=access_token
packageName
The package name of the application the inapp product was sold in (for example, 'com.some.thing').
&&&&&&&&&&&
The inapp product SKU (for example, 'com.some.thing.inapp1').
purchaseToken
The token provided to the user's device when the inapp product was purchased. 就是订单中purchaseToken
"kind": "androidpublisher#productPurchase",
"purchaseTimeMillis": long,
"purchaseState": integer,
"consumptionState": integer,
"developerPayload": string
consumptionState
The consumption state of the inapp product. Possible values are:
& 0:Yet to be consumed
& 1:Consumed
developerPayload
A developer-specified string that contains supplemental information about an order.
This kind represents an inappPurchase object in the androidpublisher service.
purchaseState
The purchase state of the order. Possible values are:
& 0:Purchased
& 1:Cancelled 我们就是依靠这个判断购买信息
purchaseTimeMillis
The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
到此支付验证完成!
参考文档:
调用接口遇到的几个问题:
1. Access Not Configured.
&"error": {
& "errors": [
&&& "domain": "usageLimits",
&&& "reason": "accessNotConfigured",
&&& "message": "Access Not Configured. The API(Google Play Android Developer API)is not enabled for you project.Please use Google Developers Console to update your configuration."
& "code": 403,
& "message": "Access Not Configured. The API(Google Play Android Developer API)is not enabled for you project.Please use Google Developers Console to update your configuration."
在这个页面: https://console.&&
Google Developer Console
1.& "Google Developer Console" & "APIs & Auth" subcategory "APIs" & (api list) "Google Play Android Developer API". Set "STATUS" to "ON".
2.& "APIs & auth" subcategory "Credentials" & "Create new Client ID". Choose "Service account" and create the id.
3.& You should get a P12 key from the browser.
问题2: projectNotLinked
{ &&&&"error":&{ &&&&&&&&"errors":&[ &&&&&&&&&&&&{ &&&&&&&&&&&&&&&&"domain":&"androidpublisher", &&&&&&&&&&&&&&&&"reason":&"projectNotLinked", &&&&&&&&&&&&&&&&"message":&"The&project&id&used&to&call&the&Google&Play&Developer&API&has&not&been&linked&in&the&Google&Play&Developer&Console." &&&&&&&&&&&&} &&&&&&&&], &&&&&&&&"code":&403, &&&&&&&&"message":&"The&project&id&used&to&call&the&Google&Play&Developer&API&has&not&been&linked&in&the&Google&Play&Developer&Console." &&&&} }
在这个页设置关联:
Google Play Developer Console
1.& "Google Play Developer Console" & "Settings" & subcategory "API access".
2.& Make a link to your "Linked Project".
3.& "Service Account" place maybe already showing ur "Service account" CLIENT ID which made "google developer console".
人打赏支持
参与源创会
领取时间:
“”在线下联结了各位 OSCer,推广开源项目和理念,很荣幸有你的参与~
领取条件:参与过开源中国“源创会”的 OSCer 可以领取
码字总数 9114
支付宝支付
微信扫码支付
打赏金额: ¥
已支付成功
打赏金额: ¥
& 开源中国(OSChina.NET) |
开源中国社区(OSChina.net)是工信部
指定的官方社区求谷歌吧友帮我注册一个Google账号!_google吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:163,121贴子:
求谷歌吧友帮我注册一个Google账号!收藏
各位吧友,谁能帮我注册一个谷歌账号,每次到最后一步手机验证的时候就会显示“This phone number cannot be used for verification.”
这是为什么,谁能帮我注册一个吗?我的手机是中国移动的。万分感谢!
有知道怎么解决的吧友在吗,在线等呀
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或

我要回帖

更多关于 谷歌支付 的文章

 

随机推荐