Open KonguBharath opened 1 year ago
caught Error: usePayPalScriptReducer must be used within a PayPalScriptProvider any body know why this happen
https://stackoverflow.com/questions/74004579/any-idea-why-this-error-occur-error-usepaypalscriptreducer-must-be-used-withi you probably forgot about importing usePayPalScriptReducer from @paypal/react-paypal-js Check the ex code below and the stackoverflow link import { PayPalScriptProvider, PayPalButtons, usePayPalScriptReducer } from "@paypal/react-paypal-js";
caught Error: usePayPalScriptReducer must be used within a PayPalScriptProvider any body know why this happen