Skip to content

Keep getting "Card number is invalid" #58

@TommyLeong

Description

@TommyLeong

Screenshot 2020-07-05 at 9 46 52 PM

Nothing fancy done on the code. But the **field cardNumber** keeps returning me INVALID even if I key in the following - random 16 digits number - Real VISA / MASTER card number

Am I missing something?

<CreditCardInput
            fieldStyle={
              state.paymentDetailsError ? { border: "1px solid red" } : {}
            }
            cardNumberInputProps={{
              value: state.cardNumber,
              onChange: handleCardNumberChange,
            }}
            cardExpiryInputProps={{
              value: state.expiry,
              onChange: handleCardExpiryChange,
            }}
            cardCVCInputProps={{
              value: state.cvc,
              onChange: handleCardCVCChange,
            }}
            fieldClassName="input"
          />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions