#Gustavo-CardElement

1 messages · Page 1 of 1 (latest)

covert wigeon
#

Hi there, can you tell me a bit more about the problem? what doesn't work?

urban brook
#

I want I want to put mandatory data field

#

or, use const cardElement = elements.getElement("card");

but, dont find target.cardnumber.value

#

or get errors

covert wigeon
#

Can you send me the complete code and the detailed error message?

urban brook
#

<label or="data_payment">Dados Cobrança</label>
<CardElementContainer>
<CardElement className="form-group"
options={cardElementOpts}
onChange={handleCardDetailsChange}
/>
</CardElementContainer>

#

in react

#

setProcessingTo(true);
const cardElement = elements.getElement("card");

covert wigeon
#

and what's the exact error message?

urban brook
#

I already got it
thank you brow

covert wigeon
#

No problem