When I try to integrate it in my React app..
I used "Origin key" provided by Adyen as the "adyenKey"
var adyenKey ='pub.v2.8015565304900201.aHR0cHM6Ly9kZXYubGxlc3VvcmFjLmNvbQ.kSRpd4gWCUF0K1E2WaXAODtk3_HXGy9q9wyFi8TAu6s';
var options = {}; // See adyen-encrypt.js for details
number : '5577 0000 5577 0004', // 'xxxx xxxx xxxx xxxx'
cvc : '737', //'xxx'
holderName : 'customer', // 'John Doe'
expiryMonth : '10', //'MM'
expiryYear : '2020', // 'YYYY'
generationtime : new Date().toISOString() // new Date().toISOString()};
cseInstance.validate(cardData);
var dataEncrypted = cseInstance.encrypt(cardData);
I used these Dummy data.
It gives me cseInstance.encrypt(cardData)
this as a Malford public key
.
Any help will be great.