github blob

GITHUB BLOG

Environment variables error

JonRChá 3 meses1 comentários

Even when I pass all required params to the EfiPay constructor, I'm getting a missing environment variables error. This error is just happening for 'PRODUCTION' I checked and all the env variables I'm passing are defined.

My code

export const efiClient = new EfiPay('SANDBOX', { certificate, client_id: process.env.EFI_CLIENT_ID, client_secret: process.env.EFI_CLIENT_SECRET, certificateType: 'base64' })