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
274 stars 81 forks source link

Passing Payer details in option prop??? #114

Open trig79 opened 2 years ago

trig79 commented 2 years ago

To Do First

Ask your Question Hey

is it possible to pass the payer details via the options prop, to allow pre-population of certain fields?

const testdata = {   
        payer: {
            email_address: 'hello@hello.com',
        },
    }
<PayPalButton
    options={testdata}
/>

appreciate any guidance

thanks

Wamy-Dev commented 11 months ago

did you ever solve this?