现在开始实施谷歌钱包还为时过早吗?

发布于 2025-01-06 15:08:32 字数 2055 浏览 1 评论 0原文

Google 电子钱包应用内付款,https://developers.google.com/in-app- payments/ 、开发人员文档和工具目前都已损坏、不完整和/或缺乏相关信息。我觉得我必须写下这篇文章,希望他们注意到并也许听到我们的担忧并对此进行改进。另外,由于目前关于这个新支付系统的开发人员信息还很少,我希望这会产生积极的活动。

支持文档指向一个非常安静的论坛:https://groups.google.com/group/in-应用程序付款/主题。理想情况下,它可以指向这里的事物有生命力的地方! ;)

服务器端示例仅部分记录,说明建议使用大约五到六个不同库之一,但说明完全到此为止。

一个库链接指向一个用 Python 编写的 GitHub 存储库,显然,您必须以某种方式重写主文件之一才能使用。同样,Google 电子钱包团队在文档中的任何位置都没有记录这一点。同样非常奇怪的是,他们选择只编写 PHP 教程的一小部分,顺便说一句,PHP 是一种非常流行、熟悉且利用率极高的语言。相反,当页面上的第一个示例 https://developers.google 时,他们用 Python 编写了一个主要示例.com/in-app- payments/docs/tutorial,是用 Ruby 编写的...

该文档的另一个令人惊讶的质量缺陷是他们列出了可能<的各种错误代码的页面/em> 调试时遇到的。它的失踪确实令人惊讶。

错误可能如下所示: 呃哦。有问题。 由于技术问题,我们无法完成您的购买。 问题详情如下: 很抱歉,我们无法与商家确认您的购买 服务器。您的订单已被取消。如果有请联系商家 这个问题仍然存在。

此外,没有任何关于这些错误的文字:

Uh oh. There was a problem. 
We couldn't start your purchase because of a technical issue. 
Details of the problem below: 
Looks like there is an error in the setup for your purchase. Please 
contact the merchant with this error message: Expected 3 components in 
jwt: W29iamVjdCBPYmplY3Rd

它们都没有表现出任何专业期望和/或明确的信息来帮助任何人。

更进一步,生成 JWT 的工具已损坏:

http://developers.google.com/in -app- payments/docs/jwtdecoder

The decoder decodes the JWT header as this: 
    {"alg":"HS256","typ":"JWT"} 

https://checkout.google.com/customer/小工具/inapp/demo.html

The encoder only encodes the JWT header as  this: 
    {"alg":"HS256"}

至少文档教会了我一件非常有用的事情,“应用内支付 API 使用 JSON Web 令牌 - 或 JWT,发音类似于英语单词 jot。” “记下?”当你在酒吧的时候知道如何发音这些东西总是很高兴的。我可不想因为这样跟一个发音不正确的女孩聊天而出丑!

Google Wallet In-App Payments, https://developers.google.com/in-app-payments/, developer documentation and tools are at the present best broken, incomplete, and/or lacking relevant information. I feel I must write this in the hope that they take note and perhaps hear our concerns and improve upon this. Also because there isn't much developer information out there right now about this new payment system, I hope this will generate positive activity.

The support documentation points to a very quiet forum at https://groups.google.com/group/in-app-payments/topics. Ideally, it could just point here where things are alive! ;)

Server side examples are documented only in part, directions suggest to use one of around five or six different libraries, but directions completely end there.

One library link leads to a GitHub stored library written in Python which, apparently, you must somehow rewrite one of the main files in order to use. Again this has not been documented by the Google Wallet team anywhere in the documentation. It's also very bizarre that they would choose to only write a small bit of a PHP tutorial, which, by the way, is a very popular, familiar, and ultra-highly-leveraged language. Instead, they wrote a main example in Python when the first example on the page, https://developers.google.com/in-app-payments/docs/tutorial, is written in Ruby...

The other surprising lack of quality about the docs is the page where they list the various error codes that one may come across while debugging. Its truly amazing that it's missing.

The errors may look something like this:
Uh oh. There was a problem.
We couldn't complete your purchase because of a technical issue.
Details of the problem below:
Unfortunately, we could not confirm your purchase with the merchant's
server. Your order has been canceled. Please contact the merchant if
this problem continues.

Additionally, nothing is written about these errors:

Uh oh. There was a problem. 
We couldn't start your purchase because of a technical issue. 
Details of the problem below: 
Looks like there is an error in the setup for your purchase. Please 
contact the merchant with this error message: Expected 3 components in 
jwt: W29iamVjdCBPYmplY3Rd

None of them exhibit any professional expectations and/or definitive information to assist anyone.

Going another step further, the tools for producing JWT are broken:

http://developers.google.com/in-app-payments/docs/jwtdecoder

The decoder decodes the JWT header as this: 
    {"alg":"HS256","typ":"JWT"} 

https://checkout.google.com/customer/gadget/inapp/demo.html

The encoder only encodes the JWT header as  this: 
    {"alg":"HS256"}

At least the docs have taught me one very useful thing, "The In-App Payments API uses a JSON Web Token—or JWT, pronounced like the English word jot." "jot?" Always good to know how to pronounce these things when you're down at the pub. I wouldn't want to make a fool of myself chatting up a girl with incorrect pronunciation like that!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文