简体   繁体   中英

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. 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.

You can use the official react-paypal-js

When creating the order, specify the recipient payee with an email or merchant id .

A server integration to create the order is not required, but more robust for the usual reasons.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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