Skip to content

Commit

Permalink
Merge branch 'main' into spay-logs-and-device-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanskar2001 authored Feb 13, 2025
2 parents 43a0876 + 7c1c2f8 commit 0386f8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .en
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ HYPERSWITCH_SECRET_KEY=""
HYPERSWITCH_SENTRY_DSN=""
HYPERSWITCH_CODEPUSH_ANDROID_KEY=""
HYPERSWITCH_CODEPUSH_IOS_KEY=""
PROFILE_ID=""
PROFILE_ID=""
NETCETERA_SDK_API_KEY=""
9 changes: 9 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ app.get('/payment_methods', async (req, res) => {
}
});

app.get('/netcetera-sdk-api-key', (req, res) => {
const apiKey = process.env.NETCETERA_SDK_API_KEY;
if (apiKey) {
res.status(200).send({netceteraApiKey: apiKey});
} else {
res.status(500).send({error: 'Netcetera SDK API key is missing'});
}
});

app.listen(5252, () =>
console.log(`Node server listening at http://localhost:5252`),
);

0 comments on commit 0386f8e

Please sign in to comment.