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

Card payments are not working #428

Open
danielduarte25 opened this issue Sep 4, 2020 · 7 comments
Open

Card payments are not working #428

danielduarte25 opened this issue Sep 4, 2020 · 7 comments

Comments

@danielduarte25
Copy link

After updating the extension to #389, card payment has stopped working. Boleto payment still works fine.

Could you help me figure out what is happening? I believe it has to do with the server side extension changes, the card data sent from the storefront seems correct.

@danielduarte25
Copy link
Author

Managed to run the extension locally. I'm getting the error 422: Unable to decrypt data from the payment endpoint.
It probably has something to do with the client key and encrypted card data.

@KadoBOT
Copy link
Contributor

KadoBOT commented Sep 4, 2020

Hi @danielduarte25 ,

Is it a 3ds payment? If so, it's a know issue. I'm working on a fix.

@danielduarte25
Copy link
Author

Hello.
No, it is a regular card payment, using the 41111... test card , this one does not prompt 3ds.

@KadoBOT
Copy link
Contributor

KadoBOT commented Sep 7, 2020

@danielduarte25 I'm working on a fix for that! I'll let you know soon as I have it.

@KadoBOT
Copy link
Contributor

KadoBOT commented Sep 11, 2020

@danielduarte25 can you try running npm install again and re-deploying both the server and the client? Some dependencies were updated, including the checkout component.

I just tested and the card payment works with the 4111.. for 3DS cards, I'm still working on a fix!

Also, keep in mind that the checkout component with clientKey, only works on LIVE if the domain is secure (has https). That means that, if you are testing it locally:

  1. your localhost needs https if your env is LIVE
  2. you need to use TEST env if you don't have https

@danielduarte25
Copy link
Author

Hello.

I reinstalled the both extensions and I still get the decryption error on card payments for some reason. The card fields load just fine, the client key is being retrieved, it works, and it is in the payment request that is sent to the payment endpoint. I've tried sending the request body to the API directly via Postman and playing around with the request fields, but the error persists.
I'll just contact Adyen support, I'm not sure this is related to the extension, could be the key or some missing configuration.

@KadoBOT
Copy link
Contributor

KadoBOT commented Sep 17, 2020

Great! Let me know what's the outcome.

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

2 participants