如何通过 PHP 使用 Google 电子钱包?
我目前确实遇到了有史以来最困难的情况,即使用 PHP 实现 Google 电子钱包。过去两周我一直在研究它,但运气不佳。
我不是唯一一个在这方面陷入困境的人。我从哪里开始呢?我在网上搜索教程和文档没有结果。
I am currently really the most stuck I've ever been, implementing Google Wallet with PHP. I've been studying it for the past two weeks with little to no luck.
I'm not the only one stuck in this regard. Where do I begin? My internet searches for tutorials and documentation have been fruitless.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Google Wallet 的文档中有一个涉及 PHP 的教程。他们的示例代码可以工作并且可以轻松修改以在测试/生产环境中使用。请记住,从沙盒到生产环境时,您确实必须更改多个元素。不要假设您的密钥和 ID 在两种环境中都相同,因为事实并非如此。
设置页面:checkout.google.com/inapp/merchant/settings.html
示例代码和文档(有限的解释,但如果您了解 PHP,没问题):
https://developers.google.com/commerce/wallet/digital/docs/
code.google.com/p/iap-php/source/浏览
There is a tutorial for Google Wallet in their documentation involving PHP. Their sample code works and is easily modified to use in a test/production environment. Keep in mind that you do have to change several elements when going from sandbox to production. Do not assume you keys and ID's will be the same in both environments as they will not.
Settings page: checkout.google.com/inapp/merchant/settings.html
Sample code and documentation (limited explanation, but if you know PHP, no problem):
https://developers.google.com/commerce/wallet/digital/docs/
code.google.com/p/iap-php/source/browse