Luehang / react-paypal-button-v2

An easy and simple to use React button component to implement PayPal Checkout with Smart Payment Buttons V2 (Version 2).
https://luehangs.site/lue_hang/projects/react-paypal-button-v2
MIT License
273 stars 81 forks source link

[QUESTION] Where is nonce client? #67

Open IRediTOTO opened 4 years ago

IRediTOTO commented 4 years ago

Hi, Thank you for wrote this. I tried and made paypal button work, and get success data. But I don't understand what next? We will send data to our server, right? But data from client can be cheated. How can we secure save data to our database.

I know this question not about this package. I tried to search about " Paypal nodejs react" but look like not much people write about this. And Paypal document is very poor. :|

yocmen commented 4 years ago

Here you find what you need Paypal documentation - server integration

In the createOrder method in the client just do a fetch to your server and get and return to the function the order ID, then it will be working with the order you created in the server.