aboutsummaryrefslogtreecommitdiff
path: root/server/config
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-16 02:20:32 +0200
committerMateja <mail@matejamaric.com>2021-07-16 02:20:32 +0200
commit3f05bd208cba2d57446ad95d8383be2ed1089c87 (patch)
tree3da912888bcf146a77192bc5effc59a465b6535e /server/config
parent40358139a8ad1cba015c109dde915d6d8955fd99 (diff)
downloadmevn-ecommerce-3f05bd208cba2d57446ad95d8383be2ed1089c87.tar.gz
mevn-ecommerce-3f05bd208cba2d57446ad95d8383be2ed1089c87.zip
Setup and capture test transactions.
Diffstat (limited to 'server/config')
-rw-r--r--server/config/paypal.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/config/paypal.js b/server/config/paypal.js
index da6c2c3..3b45015 100644
--- a/server/config/paypal.js
+++ b/server/config/paypal.js
@@ -8,8 +8,4 @@ function environment() {
return new paypal.core.SandboxEnvironment(paypalClientId, paypalClientSecret);
}
-function client() {
- return new paypal.core.PayPalHttpClient(environment());
-}
-
-module.exports = client;
+module.exports = new paypal.core.PayPalHttpClient(environment());