How to create the order on the server when using the PayPalButtons component in react?
abhishekkumar28
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Mar-29-2023
06:57 AM
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.
this doesn't seem to be working for me.
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.
Related Content
- Help me find the solution for the error 'rwindow.paypal.Buttons is undefined.' in Next.js project in PayPal Payments Standard
- PayPal integration with Next, Lambda and API Gateway - 400 Invalid Request in Sandbox Environment
- paypal_js_sdk_v5_unhandled_exception {err: 'Error: No ack for postMessage init() in SDKs
- PayPal api trying to find the fee amount deducted from the payment in REST APIs
- Can't Save PayPal for purchase later with the Javascript SDK, unable to pass setup token in SDKs