Skip to content

Commit bc7357c

Browse files
authored
Merge pull request #95 from bcProFoundation/fb-takyoon-merchant-order-api-2
commit new code using merchant order channel
2 parents b01969e + b8c0875 commit bc7357c

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

merchant-list.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@
22
{
33
"code": "CA",
44
"name": "Community Artists",
5-
"walletAddress": "ecash:qp99c749msrx53hk9kn4dqqrwc0vy23prqpz6enzk2",
6-
"merchantAddress": "",
7-
"email": "",
8-
"isElpsAccepted": true
9-
10-
},
11-
{
12-
"code": "CABURN",
13-
"name": "Community - Burn",
14-
"walletAddress": "ecash:qp99c749msrx53hk9kn4dqqrwc0vy23prqpz6enzk2",
5+
"walletAddress": "ecash:qq0dnmu3tekw0a9pf0r9mk4q3d4hqwjqeypzdncvzl",
156
"merchantAddress": "",
167
"email": "",
178
"isElpsAccepted": false

packages/bitcore-wallet-service/src/lib/server.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5111,7 +5111,7 @@ export class WalletService {
51115111
config.conversion.tokenCodeUnit
51125112
} ${stringConvert} ${actualAmountConverted}`;
51135113
bot.sendMessage(
5114-
config.telegram.channelFailId,
5114+
config.merchantOrder.channelFailId,
51155115
failMessage +
51165116
'\n\n' +
51175117
this._addExplorerLinkIntoTxIdWithCoin(merchantOrder.txIdFromUser, 'xec', 'View tx on the Explorer'),
@@ -5122,7 +5122,7 @@ export class WalletService {
51225122
const dateStr = new Date().toUTCString();
51235123
const debugMessage = `${dateStr} :: error: ${merchantOrder.error} ${stringConvert} ${actualAmountConverted}`;
51245124
bot.sendMessage(
5125-
config.telegram.channelDebugId,
5125+
config.merchantOrder.channelDebugId,
51265126
debugMessage +
51275127
'\n\n' +
51285128
this._addExplorerLinkIntoTxIdWithCoin(merchantOrder.txIdFromUser, 'xec', 'View tx on the Explorer'),
@@ -5454,7 +5454,7 @@ export class WalletService {
54545454
});
54555455
this.storage.merchantOrderQueue.clean(err => {});
54565456
}
5457-
}, 10000000000);
5457+
}, 2000);
54585458
}
54595459
async _handleSendSuccesMerchantOrder(
54605460
amountCoinUserSentToServer,
@@ -5465,7 +5465,7 @@ export class WalletService {
54655465
) {
54665466
if (amountCoinUserSentToServer > 0) {
54675467
bot.sendMessage(
5468-
config.telegram.channelSuccessId,
5468+
config.merchantOrder.channelSuccessId,
54695469
merchantOrder.userAddress +
54705470
' :: Converted ' +
54715471
amountCoinUserSentToServer +
@@ -5489,7 +5489,7 @@ export class WalletService {
54895489
);
54905490
} else {
54915491
bot.sendMessage(
5492-
config.telegram.channelSuccessId,
5492+
config.merchantOrder.channelSuccessId,
54935493
merchantOrder.userAddress +
54945494
' :: ' +
54955495
this._getPaymentTypeString(merchantOrder.paymentType) +

0 commit comments

Comments
 (0)