thinhvo0108 / react-paypal-express-checkout

React component that renders Paypal's express check out button
MIT License
107 stars 71 forks source link

Error Unrecognized prop: shipping #12

Closed brave-coder9 closed 7 years ago

brave-coder9 commented 7 years ago

screenshot at oct 31 09-57-53 Hi, I met the error, please help me. My code is

const client = {
            sandbox:    'YOUR-SANDBOX-APP-ID',
            production: 'YOUR-PRODUCTION-APP-ID',
        }
<PaypalExpressBtn 
                env={paypalConfig.env} 
                client={client} 
                currency={paypalConfig.currency} 
                shipping={0} 
                onError={this.onError} 
                onSuccess={this.onSuccess} 
                onCancel={this.onCancel} 
                total={140} />
thinhvo0108 commented 7 years ago

@brave-merida Thanks for reporting this problem! This seems to come from the official Paypal script itself!

Could you please uninstall this latest version, and re-install with version 1.0.1, which is more stable npm install --save react-paypal-express-checkout@1.0.1

Thanks

brave-coder9 commented 7 years ago

Great, Thank you very much!