Language

2Checkout Documentation

Company

You must specify your API username and password when creating your 2checkout-node object (named ‘tco’ in these examples) before calling this method.

Description

Use to retrieve your company information.

Arguments

  • callback - Function to be called on success/error

Returns

  • Company Object

Example Usage:

tco.account.company(function (error, data) {
    if (error) {
        console.log(error);
    } else {
        console.log(data.response_code);
    }
});

Example Response:

    {
      "response_code" : "OK",
      "response_message" : "company info retrieved",
      "vendor_company_info" : {
        "affiliate_url" : "http://www.fake-company.com",
        "currency_code" : "USD",
        "currency_name" : "US Dollars",
        "currency_symbol" : "$",
        "demo" : "P",
        "pending_return_url" : "http://www.fake-company.com",
        "return_method" : "1",
        "return_url" : "http://www.fake-company.com",
        "secret_word" : "wh1sky",
        "site_category" : "Electronics",
        "site_description" : "Fake company for testing!",
        "site_title" : "Fake Company",
        "soft_descriptor" : "Test",
        "url" : "www.fake-company.com",
        "vendor_id" : "1234567",
        "vendor_name" : "Fake Company"
      }
    }