You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// note the FORMAT is a STRING as the first argument, and the encryptionType and targetOrigin must be object for SECOND argument
const getTokenizationToken = async () => new Promise((resolve, reject) =>
new CybersourceRestApi.KeyGenerationApi(configuration()).generatePublicKey(
'JWT',
{ encryptionType: 'RsaOaep256', targetOrigin: 'http://localhost:5000' },
(error, data) => error ? reject(error) : resolve(data))
)
getTokenizationToken().then(console.log).catch(console.error)
The text was updated successfully, but these errors were encountered:
https://github.com/CyberSource/cybersource-flex-samples-node/blob/master/express-microform/app.js#L85
^^^ Wrong, the right way is:
The text was updated successfully, but these errors were encountered: