简体   繁体   English

在 PHP 中为 Google API 钱包创建一个类

[英]Create a class for Google API wallet in PHP

I allow myself to ask a question here because I really can't find the solution and I hope to find some help here!我允许自己在这里问一个问题,因为我真的找不到解决方案,我希望在这里找到一些帮助!
So first, I understood how the Wallet API of google works, I created a class to test with the information, everything works perfectly, but now I would like to be able to create a unique class for each visitor with his information, like indicated on the documentation:所以首先,我了解了 google 的 Wallet API 是如何工作的,我创建了一个类来测试信息,一切正常,但现在我希望能够为每个访问者创建一个独特的类,包括他的信息,如上所示文档:
Note: If you need to dynamically manage and create event ticket, we recommend that you use the Web API to automate the creation of Event classes. LINK 关联
So I went to see to dynamically create classes right here , but I don't know how to post on this API and get the result, I tried to learn about gRPC Transcoding syntax, but I don't understand anything.于是就去看了动态创建类就在这里,但是不知道怎么在这个API上发帖并得到结果,我尝试学习gRPC Transcoding语法,但是什么都不懂。

I hope to find my solution here, and someone will help me or already tried to do this?我希望在这里找到我的解决方案,有人会帮助我还是已经尝试过这样做? Thank you very much for your time.非常感谢您的宝贵时间。

Oh ok my bad, I just found the google repo on the API wallet after 5 hours of searching!哦,好吧,我的错,经过 5 个小时的搜索,我刚刚在 API 钱包上找到了 google repo! https://github.com/google-pay/wallet-samples/blob/main/php/demo_eventticket.php https://github.com/google-pay/wallet-samples/blob/main/php/demo_eventticket.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM