[英]How to do PayPal transaction between two users in React.js?
I am entirely new to making E-commerce website.我对制作电子商务网站完全陌生。 Already I have built the basic interface and all required features.
我已经构建了基本界面和所有必需的功能。 I am stuck in one thing.
我被一件事困住了。 Basically I am working on Paypal integration.
基本上我正在研究 Paypal 集成。 At the moment, the money comes to my account after checkout since I have setup with my credentials.
目前,由于我已使用凭据进行设置,因此结帐后钱会进入我的帐户。 But in my Website, one can be a publisher too.
但在我的网站中,一个人也可以是出版商。 How do I ensure that the money goes from the customer to the publisher account?
如何确保资金从客户转到发布商帐户? As for the admin, since I am the admin so I already configure with necessary credentials.
至于管理员,因为我是管理员,所以我已经配置了必要的凭据。 But what about those publishers who sign up in my website?
但是那些在我的网站上注册的发布商呢? Thanks.
谢谢。 Just give me an idea.
给我一个主意。 I am using React.js in my front end.
我在前端使用 React.js。
You can use the official react-paypal-js你可以使用官方的react-paypal-js
When creating the order, specify the recipient payee
with an email or merchant id .创建订单时,请使用电子邮件或商家 ID指定收件人
payee
。
A server integration to create the order is not required, but more robust for the usual reasons.不需要用于创建订单的服务器集成,但出于通常的原因,它会更强大。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.