TIPOFF / addresses

Laravel Package to manage addresses & interact with Address API
MIT License
0 stars 2 forks source link

Address Elements #75

Open drewroberts opened 3 years ago

drewroberts commented 3 years ago

I want something similar to:

https://stripe.com/payments/elements

For both the Phone (#58 #73) entry field and the Domestic Address (#19 #72) entry field. I guess we should use regular javascript for this so it can work in all applications like the Stripe elements.

djamesfar commented 3 years ago

Do you mean "regular javascript" instead of livewire?

drewroberts commented 3 years ago

My thought is we'll need regular javascript elements similar to what Stripe uses. That will allow us to use it in both Vue (Laravel Nova Tools) and other custom implementations.

In addition, we'll also need Livewire Components as the frontend of the website for the Checkout and other areas will be in Livewire and we can wrap the element or just have a separate implementation of the fields in Livewire.

drewroberts commented 3 years ago

These components will need some sort of validation or parsing of the data for how we want to save it in the database.