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

[FEATURE REQUEST] CreateOrder to return the orderID #50

Open tssdsta opened 4 years ago

tssdsta commented 4 years ago

Is your feature request related to a problem? Please describe. Yes. OnCancel returns a orderID, but there is no means to check this orderID as the library does not return orderID when createOrder is called.

Describe the solution you'd like

I hope createOrder will return the orderId as PayPal provides this.

Describe alternatives you've considered

No alternative. Worse Case i have to develop another library to call Paypal directly to get Order details.

Additional context