#cedric2711

1 messages · Page 1 of 1 (latest)

fickle totemBOT
stone cove
#

AddressElement is used alongside with PaymentElement not CardElement AFAIK

acoustic hound
#

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

stone cove
#

Could you elaborate? Which Google api key? Do you have the public accessible URL?

acoustic hound
#

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

acoustic hound
#

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

stone cove
#

I would suggest following this Doc

#

You get that client Secret from backend, after creating a PaymentIntent

acoustic hound
#

Ok

#

question as followup once i get PaymentElement work.

#

will I be able to get PaymentElement to be visually represented like CardElement?

stone cove
#

Yes you can see an example on above Doc

acoustic hound
#

I am not able to find an attribute or example of the same.

stone cove
#

Sorry what does that mean? Which part on above Doc that you couldn't follow?

acoustic hound
#

how to do display PaymentElment as a CardElement

stone cove
#

PaymentElement is not CardElement. They are 2 completely different components

acoustic hound
#

I understand that

#

question is can i style it to behave the same?

stone cove
#

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

fickle totemBOT