Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Encrypt Card Details Using Custom Card Integration #266

Open
ashrafnazar opened this issue Mar 28, 2024 · 1 comment
Open

How to Encrypt Card Details Using Custom Card Integration #266

ashrafnazar opened this issue Mar 28, 2024 · 1 comment

Comments

@ashrafnazar
Copy link

Hi there,

I'm looking to be able to encrypt card details using an instance of AdyenCheckout, e.g.

const checkout = await AdyenCheckout({});

checkout.create('securedfields, {…});

If I am already using

checkout.createFromAction()

How would this be integrated?

I'm also using a form library (Formik) to build the form which contains the card component.

Many thanks!

@ashrafnazar
Copy link
Author

ashrafnazar commented Apr 2, 2024

I've just realised that in order to do so, a container is required with correct data-cse attributes. This isn't explicitly mentioned in the docs and can be confusing. Also, when I attempt to use style the component using the paymentMethodsConfiguration property it doesn't seem to work:

paymentMethodsConfiguration: {
   card: {
    styles: {
      base: {
        color: 'blue',
        fontFamily: 'Helvetica',
        fontSmoothing: 'antialiased',
      },
    },
  },
},

Is there something missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant