Minor updates to intellipay processing.

This commit is contained in:
Patrick Fic
2023-08-09 20:14:44 -07:00
parent b8942c320e
commit 2e763f1dd5
6 changed files with 19 additions and 37 deletions

View File

@@ -20,8 +20,8 @@ const getShopCredentials = async (bodyshop) => {
// Development only
if (process.env.NODE_ENV === undefined) {
return {
merchantkey: process.env.DEV_INTELLIPAY_MERCHANTKEY,
apikey: process.env.DEV_INTELLIPAY_APIKEY,
merchantkey: process.env.INTELLIPAY_MERCHANTKEY,
apikey: process.env.INTELLIPAY_APIKEY,
};
}
@@ -47,9 +47,10 @@ exports.lightbox_credentials = async (req, res) => {
data: qs.stringify({
...shopCredentials,
operatingenv:
process.env.NODE_ENV === undefined
? process.env.NODE_ENV
: "businessattended",
// process.env.NODE_ENV === undefined
// ? process.env.NODE_ENV
// :
"businessattended",
}),
url: `https://${domain}.cpteller.com/api/custapi.cfc?method=autoterminal`,
};