简体   繁体   English

如何在 React 应用程序中集成 Google Pay

[英]How to integrate Google pay in react application

I need to integrate google pay in my react application but i am not getting proper article on this.is it possible to integrate google pay in react application?and how can i implement it?我需要在我的反应应用程序中集成谷歌支付,但我没有得到关于这个的正确文章。是否可以将谷歌支付集成到反应应用程序中?我该如何实现它?

We've just published and launched the @google-pay/button-react .我们刚刚发布并启动@google-pay/button-react

You can install it with:您可以使用以下方式安装它:

npm install @google-pay/button-react

Alternatively, you can try it out on JSFiddle .或者,您可以在JSFiddle上尝试一下。

Please raise a GitHub issue if you have any problems with it.如果您有任何问题,请提出 GitHub 问题。

For an example of how to Google Pay is integrated into a demo store, check out the following repository: https://github.com/google-pay/react-store/compare/google-pay有关如何将 Google Pay 集成到演示商店的示例,请查看以下存储库: https://github.com/google-pay/react-store/compare/google-pay

Note that you will also need to sign up for a Google Pay merchant account before you can launch: http://pay.google.com/business/console请注意,您还需要先注册一个 Google Pay 商家帐户,然后才能启动: http://pay.google.com/business/console

EDIT:编辑:

Updated to include a JSFiddle link.更新为包含 JSFiddle 链接。

EDIT 2:编辑2:

Updated with link to official launch post.更新了官方发布帖子的链接。

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

相关问题 如何在反应应用程序中集成谷歌登录身份验证 - How to integrate google signin authentication in react application 将购物车价值整合到 google pay 中的 react js - integrate shopping cart value in google pay in react js Google Pay for Passes 与 React 应用程序集成时出现 403 错误 - 403 error at Google Pay for Passes Integration with a React application 在 React 应用程序中将 Google Analytics 与到达路由器集成 - Integrate Google Analytics with reach router in React application 找不到React / Node App的Node sdk。 如何将Amazon Pay与React应用程序集成 - Cannot find Node sdk for React/Node App. How to integrate Amazon pay with React app 如何在 Google Pay 反应按钮中调用 ProcessPayment function? - How to call ProcessPayment function in Google Pay react button? 如何将Google Calendar API与React JS集成? - How to Integrate Google Calendar API with React JS? 如何将React样板集成到现有的jQuery应用程序中? - How to integrate react boilerplate into existing jquery application? 如何将Reselect集成到我的React + Redux应用程序中? - How to integrate Reselect in my React + Redux application? 如何将 fcm 集成到 react js 应用程序中? - How to integrate fcm in react js application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM