Invalid authorization key

This is my payload and I try to send it to the flutter charge card and it sends an invalid authorization key

payload = {
card_number,
cvv,
expiry_month,
expiry_year,
currency: “NGN”,
amount: amount.toString(),
redirect_url: “https://www.drinksofallkind.com”,
fullname,
email,
phone_number,
enckey: process.env.FLW_ENCRYPTION_KEY,
tx_ref: transaction._id.toString(),
};

{ status: ‘error’, message: ‘Invalid authorization key’, data: null }

Hi @Ohiosumua_daniel

Thanks for sharing this experience,

The above error indicates that you are either passing an invalid authorization key (SECRET KEY).

Therefore, if the request above was sent via an SDK, kindly navigate to where your environment variables are stored and update the SECRET KEY, and if the request above was sent via postman, update the SECRET KEY environment variable and navigate to the “AUTH” menu to confirm if the “type” selected is “Bearer Token”.