Jump to content
McKay Development

Confirming a trade, where trade id is?


Jartsu

Recommended Posts

Hey,

 

I'm trying to make an "confirmation system". After trade is sent, you can call it, with trade id, so it would be confirmed. Is there already something like that or not? If it's not possible to do something like that, okay.

 

If it's not possible (the tradeid confirming, then) -> After logging in I have that line: 

community.startConfirmationChecker(10000, account.identity_secret);

But it doesn't seem to work for me.

Link to comment
Share on other sites

Hello,

 

Sorry for bad explanation.. 

 

After trade is sent, you will be getting a trade id Ex: 7362832

Then I wanted to create a function example: ConfirmTrade(int tradeID)

The question what I was asking, is there a possible way creating that function?

Link to comment
Share on other sites

Hmm, The confirming doesn't work for me at all :/, What could be the issue (not the same thing what I asked before)

community.on('confKeyNeeded', function(tag, callback) {
    var time = Math.floor(Date.now() / 1000);
    var key_conf = SteamTotp.getConfirmationKey(config.identity_secret, time, 'conf');
    callback(null, time, key_conf);
});

community.on('newConfirmation', function(confirmation) {
    logger.info("newConfirmation requested.");

    var time_details = Math.floor(Date.now() / 1000);
    var key_details = SteamTotp.getConfirmationKey(config.identity_secret, time_details+t_offset, 'allow');
    confirmation.respond(time_details+t_offset, key_details, true, function(err){
        if (err != null) {logger.error("Unable to confirm offer: "+err); return; }
        logger.info("Trade Accepted with 2FA");
    });
});
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...