Improvements to intellipay script.
This commit is contained in:
@@ -59,11 +59,7 @@ exports.lightbox_credentials = async (req, res) => {
|
||||
//TODO: Move these to environment variables/database.
|
||||
data: qs.stringify({
|
||||
...shopCredentials,
|
||||
operatingenv:
|
||||
// process.env.NODE_ENV === undefined
|
||||
// ? process.env.NODE_ENV
|
||||
// :
|
||||
"businessattended",
|
||||
operatingenv: "businessattended",
|
||||
}),
|
||||
url: `https://${domain}.cpteller.com/api/custapi.cfc?method=autoterminal`,
|
||||
};
|
||||
@@ -114,6 +110,7 @@ exports.generate_payment_url = async (req, res) => {
|
||||
...shopCredentials,
|
||||
...req.body,
|
||||
createshorturl: true,
|
||||
//The postback URL is set at the CP teller global terminal settings page.
|
||||
}),
|
||||
url: `https://${domain}.cpteller.com/api/custapi.cfc?method=generate_lightbox_url`,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user