-
Notifications
You must be signed in to change notification settings - Fork 39
Why i get 'false' used in React Native? #56
Comments
Hi, Instead of doing the creation of the encryption and the encryption directly following each other, it is advised to instantiate the encryption object earlier in the flow. The engine needs time to gather random data . If there is not enough random data the encryption will fail. Best, Arnoud |
Ok,I will check it and then feedback |
@MoNodin I'm in the exact same spot. Have you find a working solution yet? Nevermind, my problem was with |
We got false result for these cards ( first 6 digit only ) The cseInstance was built before we try to encrypt. The cseInstance.validate(cardData) returns with number incorrect error. Meanwhile we get processed few of these cards manually without error. Please advise. |
are you guys able to run the library on React Native? |
Anyways, If anyone want this in react-native I just released for react-native https://github.com/chocnut/RNAdyenCse |
@kbonnin @chocnut @sandor-anyvan Finally, I resolved it by using the Ayden Native Module created by our team, just like the library given by @chocnut Thank you guy, chocnut. |
source code:
import adyenEncrypt from 'adyen-cse-web';
......
const cseInstance = adyenEncrypt.createEncryption(PUBLIC_KEY_DEV, options);
postData['adyen-encrypted-data'] = cseInstance.encrypt(cardData);
result:
Object {adyen-encrypted-data: false}
The text was updated successfully, but these errors were encountered: