#cedric2711
1 messages · Page 1 of 1 (latest)
AddressElement is used alongside with PaymentElement not CardElement AFAIK
can i not be used along with CardElement?
If I pass the google api KEY, auto complete works
however without the key it does not work
Could you elaborate? Which Google api key? Do you have the public accessible URL?
I have a private key which is was generated for places
google places
If i pass that api key as part of the api-key value, the solution works
apiKey
Question
I'm trying to use a PaymentElement
I are requested for a clientSecret
where do I get that value from
I am already passing stripe key to the provider
I would suggest following this Doc
You get that client Secret from backend, after creating a PaymentIntent
Ok
question as followup once i get PaymentElement work.
will I be able to get PaymentElement to be visually represented like CardElement?
Yes you can see an example on above Doc
I am not able to find an attribute or example of the same.
Sorry what does that mean? Which part on above Doc that you couldn't follow?
how to do display PaymentElment as a CardElement
PaymentElement is not CardElement. They are 2 completely different components
I understand that
question is can i style it to behave the same?
Also thank you for answering the previous questions
Which part specifically you want to display as CardElement?
We have the Appearance API on PaymentElement, which you can customize a lot of looks and feels tho