-
Notifications
You must be signed in to change notification settings - Fork 8
Account_Company
Jacob McConnell edited this page Jun 11, 2014
·
1 revision
You must specify your API username and password when creating your 2checkout-node object (named ‘tco’ in these examples) before calling this method.
##Methods
##company
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"
}
}
Please feel free to contact 2Checkout directly for assistance with your integration.