From 26392dcf244be4cb474cb3b35ba609159f71c5ba Mon Sep 17 00:00:00 2001 From: Komarudin Date: Wed, 22 Sep 2021 08:44:46 +0700 Subject: [PATCH] default credential --- examples/expressApp/app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/expressApp/app.js b/examples/expressApp/app.js index 004befd..11037e1 100644 --- a/examples/expressApp/app.js +++ b/examples/expressApp/app.js @@ -4,9 +4,9 @@ const express = require('express'); const midtransClient = require('midtrans-client'); // Set Your server key -// can find in Merchant Portal -> Settings -> Access keys -const SERVER_KEY = ''; -const CLIENT_KEY = ''; +// You can find it in Merchant Portal -> Settings -> Access keys +const SERVER_KEY = 'SB-Mid-server-GwUP_WGbJPXsDzsNEBRs8IYA'; +const CLIENT_KEY = 'SB-Mid-client-61XuGAwQ8Bj8LxSS'; // Express setup let app = express(); @@ -210,8 +210,8 @@ app.get('/', function (req, res) { function printExampleWarningMessage() { message = "

Please set your server key and client key from sandbox

In file: " + __filename - message += "

# Set Your server key" - message += "
# can find in Merchant Portal -> Settings -> Access keys" + message += "

// Set Your server key" + message += "
// You can find it in Merchant Portal -> Settings -> Access keys" message += "
SERVER_KEY = ''" message += "
CLIENT_KEY = ''
" return message