Knowledge Base » Suppliers » Tech Support » Passbacks and Returns »

Country Codes

Below are all the available countries to ship to through 2Checkout and their relative country codes, listed in alphabetical order by country name. These codes are to be used with the ‘country’ parameter. This listing reflects the changes made in the new version of our purchase routine effective as of July 17, 2007.

AFG - Afghanistan
ALB - Albania
DZA - Algeria
ASM - American Samoa
AND - Andorra
AGO - Angola
AIA - Anguilla
ATA - Antarctica
ATG - Antigua and Barbuda
ARG - Argentina
ARM - Armenia
ABW - Aruba
AUS - Australia
AUT - Austria
AZE - Azerbaijan
BHS - Bahamas
BHR - Bahrain
BGD - Bangladesh
BRB - Barbados
BLR - Belarus
BEL - Belgium
BLZ - Belize
BEN - Benin
BMU - Bermuda
BTN - Bhutan
BOL - Bolivia
BIH - Bosnia and Herzegovina
BWA - Botswana
BVT - Bouvet Island
BRA - Brazil
IOT - British Indian Ocean Territory
BRN - Brunei Darussalam
BGR - Bulgaria
BFA - Burkina Faso
BDI - Burundi
KHM - Cambodia
CMR - Cameroon
CAN - Canada
CPV - Cape Verde
CYM - Cayman Islands
CAF - Central African Republic
TCD - Chad
CHL - Chile
CHN - China
CXR - Christmas Island
CCK - Cocos (Keeling) Islands
COL - Colombia
COM - Comoros
COG - Congo
COD - Congo, the Democratic Republic of the
COK - Cook Islands
CRI - Costa Rica
CIV - Cote D’ivoire
HRV - Croatia (Hrvatska)
CYP - Cyprus
CZE - Czech Republic
DNK - Denmark
DJI - Djibouti
DMA - Dominica
DOM - Dominican Republic
ECU - Ecuador
EGY - Egypt
SLV - El Salvador
GNQ - Equatorial Guinea
ERI - Eritrea
EST - Estonia
ETH - Ethiopia
FLK - Falkland Islands (Malvinas)
FRO - Faroe Islands
FJI - Fiji
FIN - Finland
FRA - France
FXX - France, Metropolitan
GUF - French Guiana
PYF - French Polynesia
ATF - French Southern Territories
GAB - Gabon
GMB - Gambia
GEO - Georgia
DEU - Germany
GHA - Ghana
GIB - Gibraltar
GRC - Greece
GRL - Greenland
GRD - Grenada
GLP - Guadeloupe
GUM - Guam
GTM - Guatemala
GIN - Guinea
GNB - Guinea-Bissau
GUY - Guyana
HTI - Haiti
HMD - Heard Island and Mcdonald Islands
HND - Honduras
HKG - Hong Kong
HUN - Hungary
ISL - Iceland
IND - India
IDN - Indonesia
IRQ - Iraq
IRL - Ireland
ISR - Israel
ITA - Italy
JAM - Jamaica
JPN - Japan
JOR - Jordan
KAZ - Kazakhstan
KEN - Kenya
KIR - Kiribati
KOR - Korea, Republic of
KWT - Kuwait
KGZ - Kyrgyzstan
LAO - Lao People’s Democratic Republic
LVA - Latvia
LBN - Lebanon
LSO - Lesotho
LBR - Liberia
LBY - Libyan Arab Jamahiriya
LIE - Liechtenstein
LTU - Lithuania
LUX - Luxembourg
MAC - Macao
MKD - Macedonia, the Former Yugoslav Republic of
MDG - Madagascar
MWI - Malawi
MYS - Malaysia
MDV - Maldives
MLI - Mali
MLT - Malta
MHL - Marshall Islands
MTQ - Martinique
MRT - Mauritania
MUS - Mauritius
MYT - Mayotte
MEX - Mexico
FSM - Micronesia, Federated States of
MDA - Moldova, Republic of
MCO - Monaco
MNG - Mongolia
MNE - Montenegro
MSR - Montserrat
MAR - Morocco
MOZ - Mozambique
NAM - Namibia
NRU - Nauru
NPL - Nepal
NLD - Netherlands
ANT - Netherlands Antilles
NCL - New Caledonia
NZL - New Zealand
NIC - Nicaragua
NER - Niger
NGA - Nigeria
NIU - Niue
NFK - Norfolk Island
MNP - Northern Mariana Islands
NOR - Norway
OMN - Oman
PAK - Pakistan
PLW - Palau
PSE - Palestinian Territory, Occupied
PAN - Panama
PNG - Papua New Guinea
PRY - Paraguay
PER - Peru
PHL - Philippines
PCN - Pitcairn
POL - Poland
PRT - Portugal
PRI - Puerto Rico
QAT - Qatar
REU - Reunion
ROU - Romania
RUS - Russian Federation
RWA - Rwanda
SHN - Saint Helena
KNA - Saint Kitts and Nevis
LCA - Saint Lucia
SPM - Saint Pierre and Miquelon
VCT - Saint Vincent and the Grenadines
WSM - Samoa
SMR - San Marino
STP - Sao Tome and Principe
SAU - Saudi Arabia
SEN - Senegal
SRB - Serbia
SCG - Serbia and Montenegro
SYC - Seychelles
SLE - Sierra Leone
SGP - Singapore
SVK - Slovakia
SVN - Slovenia
SLB - Solomon Islands
SOM - Somalia
ZAF - South Africa
SGS - South Georgia and the South Sandwich Islands
ESP - Spain
LKA - Sri Lanka
SUR - Suriname
SJM - Svalbard and Jan Mayen Islands
SWZ - Swaziland
SWE - Sweden
CHE - Switzerland
TWN - Taiwan
TJK - Tajikistan
TZA - Tanzania, United Republic of
THA - Thailand
TLS - Timor-Leste
TGO - Togo
TKL - Tokelau
TON - Tonga
TTO - Trinidad and Tobago
TUN - Tunisia
TUR - Turkey
TKM - Turkmenistan
TCA - Turks and Caicos Islands
TUV - Tuvalu
UGA - Uganda
UKR - Ukraine
ARE - United Arab Emirates
GBR - United Kingdom
USA - United States
UMI - United States Minor Outlying Islands
URY - Uruguay
UZB - Uzbekistan
VUT - Vanuatu
VAT - Vatican City State (Holy See)
VEN - Venezuela
VNM - Viet Nam
VGB - Virgin Islands, British
VIR - Virgin Islands, U.S.
WLF - Wallis and Futuna Islands
ESH - Western Sahara
YEM - Yemen
YUG - Yugoslavia
ZAR - Zaire
ZMB - Zambia
ZWE - Zimbabwe

Direct Return

One of the most utilized features available to our suppliers is the ability to return a customer, along with information regarding their order, to the page from which their order originated. Although this process can be extremely useful and powerful, it can also be misunderstood by someone who does not have all of the available information.

Continue reading…

Why Are the Images/Links on my Approved URL Broken?

When Direct Return is enabled (set to ‘Yes’), your Approved URL page will be fetched and displayed to the customer while they remain on 2Checkout’s server. Because of this, images and links that use relative paths will not resolve correctly, resulting in broken images and incorrect link destinations.

To fix this, you will need to specify a base URI for your Approved URL. This can be accomplished by inserting the following line between the <HEAD> tag of your page:

<base href=”http://www.example.com/pathto/approved.html”/>

The URL specified after ‘href=’ should be changed to your Approved URL. This information also applies to your Pending URL.

How does a direct return work?

The direct return works through a spider on 2Checkout.com that does an HTML GET from our server with all the variables to the seller’s server. The spider prints to the screen whatever the seller’s server returns for the buyer to see.

How do single and multiple product downloads work with Direct Return?

ORDERING A SINGLE PRODUCT VS. ORDERING MULTIPLE PRODUCTS WITH DIRECT RETURN (YES):

The order process works in the following manner when direct return is set to “Yes“.

  1. If no approved or pending URL’s have been specified in your vendor account, the customers order will end at the 2checkout order confirmation screen. The vendor is then responsible for supplying the customer with the product.
  2. If a single product is ordered, the direct return feature will return the customer to your specified return URL. This is only true if you have specified a return URL at the product section or the look and feel section of your account. The assigned URL’s at the product level will always override the URL’s set up at the look and feel section of your account. 2A. If multiple products are ordered, the direct return feature will work exactly the same as if a customer orders a single product. This is only true if you have specified a return URL in the look and feel section of your account.
  3. If the customer orders a single product and you have specified the return URL at the product level, the customer will be returned to the URL indicated at the product level. 3A. If multiple products are ordered and you have set up approved and pending URLs at the product level, the order process ends at the 2checkout confirmation order page. At this page, there will be a “click here” link that is created for each product ordered on that page. The “click here” link will direct the customer to the approved URL for that product.

    Since the customer ordered multiple products, this page will not close until it is manually closed by the customer. This way the customer will receive all the downloads or will be forwarded to all the correct URLs to receive their downloads.

**Useful Info

To add an approved URL to the look and feel section of your account, you can click on “settings” under the “helpful links” section of your account homepage.

To add a approved URL to each of your products, you will need to click on option 4 (set up products) of your account homepage. You will then need to click on the “edit” link for the product you need to add the approved URL to. There will be a field to input your approved URL. Simply add your approved URL and click on the save changes button.

Can I pass back parameters?

Yes. All parameters of a successful sale can be passed back to a script on your server after the sale is complete.

Why won’t my parameters pass back?

Parameters are only passed back to a script. This means your Return Address needs to end in a script extension (cgi, pl, php, asp, jsp, ETC).

Why are my buyers being returned to the wrong URL?

Please Check where you add/edit products in the Admin to see if you set up a return URL that is different than where you want the buyer to be sent to. That return will override the return URLs you set up in the Return page.

How do I use the continue shopping button?

The continue shopping button works like this:
#1 If return_url is passed in, it returns to the page (i.e. return_url=http://www.example.com/mypage.html).
#2 If that is not passed in, it returns to the page the buyer clicked “buy” (by http_referer) from on your site (doesn’t work if you are testing from a page on your pc).
#3 If those 2 things are blank, it returns to the website url listed on the account.

Below are examples of how the return_url parameter may be implemented.

Form:
<form action=”https://www.2checkout.com/2co/buyer/purchase” method=”post”>
<input type=”hidden” name=”sid” value=”XXXXXX”>
<input type=”hidden” name=”quantity” value=”1″>
<input type=”hidden” name=”product_id” value=”1″>
<input type=”hidden” name=”return_url” value=”http://www.example.com/mypage.html”>
<input name=”submit” type=”submit” value=”Buy from 2CO”>
</form>

Hyperlink:
<a href=”https://www.2checkout.com/2co/buyer/purchase?sid=XXXXXX&quantity=1&product_id=1&return_url=http://www.example.com/mypage.html>Buy from 2CO</a>

Can I have extra fields on the form?

Most of our Vendors that need extra details about the buyer usually have the buyer sent back to a form on their site after the sale. This way, the buyer could send all extra details directly to them.

Page 1 of 3123»

Recent Posts from the Community:

traduction

posted by: ykafouni

Changing Banks

posted by: devhip

Tell Us about You

posted by: bion
More from the community »

Now a faster, easier way to get paid – the 2CO reloadable MasterCard®.

Sign up today and receive a $10 credit on your card.


Click here to learn more.

Spotlight Supplier

Spotlight Supplier

Egyptian Gifts

Spotlight Product

Spotlight Product

Online Collaboration Software


Popular Tags