Language

2Checkout Documentation

Retrieve

The Twocheckout_Contact class provides the retrieve method that will return your contact information.

Methods

  • retrieve: Returns contact information from Contact Information page.

Arguments

  • none

Returns

Returns contact information from Contact Information page.

Example Usage:

Twocheckout::username('APIuser1817037');
Twocheckout::password('APIpass1817037');

$company = Twocheckout_Company::retrieve();

Example Response:

Array
(
    [response_code] => OK
    [response_message] => company info retrieved
    [vendor_company_info] => Array
        (
            [affiliate_url] => 
            [currency_code] => USD
            [currency_name] => US Dollars
            [currency_symbol] => $
            [demo] => P
            [pending_return_url] => 
            [return_method] => 2
            [return_url] => http://localhost:4567/return
            [secret_word] => tango
            [site_category] => Other
            [site_description] => 
            [site_title] => 
            [soft_descriptor] => D1817037
            [url] => http://localhost/
            [vendor_id] => 1817037
            [vendor_name] => Library Test Account
        )
)