How to create the order on the server when using the PayPalButtons component in react?

abhishekkumar28
Contributor
Contributor

I want to create an order on the server using the REST API and send the orderId to my react application. In my react application I am using "

@paypal/react-paypal-js". 

<PayPalButtons
style={{ layout: 'horizontal' }}
createOrder={createPaypalOrder}
/>

this doesn't seem to be working for me.
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.