cocoastorm / vue-paypal-checkout

A simple Vue.js wrapper component for paypal-checkout
MIT License
153 stars 67 forks source link

how to write the address #68

Closed mjfxdd closed 5 years ago

mjfxdd commented 5 years ago

I don't know how to send the address to paypal. I hope I can choose the address on the page and pass it to PayPal instead of checking the address in PayPal after it logs in.
Can you tell me how to transmit and how to write the data? Thank you very much. image

That's what the official document says, but I don't know how to write it in vue.

image image

cocoastorm commented 5 years ago

Hey @mjfxdd,

Sorry for the late reply! I checked the PayPal docs and you're right this doesn't seem to be exposed in the component anywhere. I'll make a slight addition where you can pass in an shipping-address prop.

Side note, I'm currently not very happy how some of the props are completely different to how PayPal has it laid out but this can be tackled in another issue.

cocoastorm commented 5 years ago

Hey @mjfxdd,

Just an update I released v3.2.0, which should have the shipping-address prop available for you to use.

Thanks!