Minor updates to intellipay processing.
This commit is contained in:
@@ -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`,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user