简体   繁体   English

是否有任何信息或链接清楚地涵盖 paypal 集成在 react native 中?

[英]Are there any info or links that clearly covers paypal integration in react native?

I would like to setup a paypal payment method exactly the same as Airbnb.我想设置一个与 Airbnb 完全相同的 paypal 付款方式。 The payment will be recurring on a monthly basis.付款将按月重复。

If one user is directly paying another user for a fixed amount that recurs automatically every month between just their accounts (very different from AirBnB's setup), that can be done with a Subscribe button.如果一个用户直接向另一个用户支付固定金额,每月在他们的帐户之间自动重复(与 AirBnB 的设置非常不同),则可以使用订阅按钮完成。 The easiest integration will be to create a classic HTML-only Subscribe button via https://www.paypal.com/buttons , uncheck the option in Step 2 to save the button at PayPal, and once the code is generated click the link to remove code protection.最简单的集成是通过https://www.paypal.com/buttons创建一个经典的纯 HTML 订阅按钮,取消选中步骤 2 中的选项以将按钮保存在 ZAD69E733EBAE8D264BCCAA38D68830E 中,一旦生成代码并单击链接到删除代码保护。 This will give you a button with variables you can adjust, per HTML Variable for Payments Standard , including the business destination in particular.这将为您提供一个按钮,其中包含您可以调整的变量,每个HTML 支付标准变量,尤其包括business目的地。

Newer PayPal Subscriptions can be used instead, but are more complex to set up, as each user will need to have the appropriate recurring Plan created for them via an API call, and you will need their Client ID and Secret to do that from your server.可以改用较新的 PayPal 订阅,但设置起来更复杂,因为每个用户都需要通过 API 调用为他们创建适当的定期计划,并且您需要他们的客户端 ID 和密码才能从您的服务器执行此操作.

Since you are using React Native, it is important to note that all PayPal flowsrequire a web interface that includes an address bar, such as Safari View Controller or Chrome Custom Tab. Since you are using React Native, it is important to note that all PayPal flowsrequire a web interface that includes an address bar, such as Safari View Controller or Chrome Custom Tab. A WKWebView or similar cannot be used.不能使用 WKWebView 或类似的。

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

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