Countriesanchor

You can specify the country using name, alpha-2 code, alpha-3 code, or numeric code.

Alpha-2 codeanchor

  1. Ruby
result = gateway.transaction.sale(
  :amount => '100.00',
  :payment_method_nonce => nonce_from_the_client,
  :billing => {
    :country_code_alpha2 => 'US'
  }
)

Alpha-3 codeanchor

  1. Ruby
result = gateway.transaction.sale(
  :amount => '100.00',
  :payment_method_nonce => nonce_from_the_client,
  :billing => {
    :country_code_alpha3 => 'USA'
  }
)

Numeric codeanchor

  1. Ruby
result = gateway.transaction.sale(
  :amount => '100.00',
  :payment_method_nonce => nonce_from_the_client,
  :billing => {
    :country_code_numeric => '840'
  }
)

Country nameanchor

  1. Ruby
result = gateway.transaction.sale(
  :amount => '100.00',
  :payment_method_nonce => nonce_from_the_client,
  :billing => {
    :country_name => 'United States of America'
  }
)

List of countriesanchor

NameAlpha2Alpha3Numeric
AfghanistanAFAFG4
ÅlandAXALA248
AlbaniaALALB8
AlgeriaDZDZA12
American SamoaASASM16
AndorraADAND20
AngolaAOAGO24
AnguillaAIAIA660
AntarcticaAQATA10
Antigua and BarbudaAGATG28
ArgentinaARARG32
ArmeniaAMARM51
ArubaAWABW533
AustraliaAUAUS36
AustriaATAUT40
AzerbaijanAZAZE31
BahamasBSBHS44
BahrainBHBHR48
BangladeshBDBGD50
BarbadosBBBRB52
BelarusBYBLR112
BelgiumBEBEL56
BelizeBZBLZ84
BeninBJBEN204
BermudaBMBMU60
BhutanBTBTN64
BoliviaBOBOL68
Bonaire, Sint Eustatius and SabaBQBES535
Bosnia and HerzegovinaBABIH70
BotswanaBWBWA72
Bouvet IslandBVBVT74
BrazilBRBRA76
British Indian Ocean TerritoryIOIOT86
Brunei DarussalamBNBRN96
BulgariaBGBGR100
Burkina FasoBFBFA854
BurundiBIBDI108
CambodiaKHKHM116
CameroonCMCMR120
CanadaCACAN124
Cape VerdeCVCPV132
Cayman IslandsKYCYM136
Central African RepublicCFCAF140
ChadTDTCD148
ChileCLCHL152
ChinaCNCHN156
Christmas IslandCXCXR162
Cocos (Keeling) IslandsCCCCK166
ColombiaCOCOL170
ComorosKMCOM174
Congo (Brazzaville)CGCOG178
Congo (Kinshasa)CDCOD180
Cook IslandsCKCOK184
Costa RicaCRCRI188
Côte d'IvoireCICIV384
CroatiaHRHRV191
CubaCUCUB192
CuraçaoCWCUW531
CyprusCYCYP196
Czech RepublicCZCZE203
DenmarkDKDNK208
DjiboutiDJDJI262
DominicaDMDMA212
Dominican RepublicDODOM214
EcuadorECECU218
EgyptEGEGY818
El SalvadorSVSLV222
Equatorial GuineaGQGNQ226
EritreaERERI232
EstoniaEEEST233
EthiopiaETETH231
Falkland IslandsFKFLK238
Faroe IslandsFOFRO234
FijiFJFJI242
FinlandFIFIN246
FranceFRFRA250
French GuianaGFGUF254
French PolynesiaPFPYF258
French Southern LandsTFATF260
GabonGAGAB266
GambiaGMGMB270
GeorgiaGEGEO268
GermanyDEDEU276
GhanaGHGHA288
GibraltarGIGIB292
GreeceGRGRC300
GreenlandGLGRL304
GrenadaGDGRD308
GuadeloupeGPGLP312
GuamGUGUM316
GuatemalaGTGTM320
GuernseyGGGGY831
GuineaGNGIN324
Guinea-BissauGWGNB624
GuyanaGYGUY328
HaitiHTHTI332
Heard and McDonald IslandsHMHMD334
HondurasHNHND340
Hong KongHKHKG344
HungaryHUHUN348
IcelandISISL352
IndiaININD356
IndonesiaIDIDN360
IranIRIRN364
IraqIQIRQ368
IrelandIEIRL372
Isle of ManIMIMN833
IsraelILISR376
ItalyITITA380
JamaicaJMJAM388
JapanJPJPN392
JerseyJEJEY832
JordanJOJOR400
KazakhstanKZKAZ398
KenyaKEKEN404
KiribatiKIKIR296
Korea, NorthKPPRK408
Korea, SouthKRKOR410
KuwaitKWKWT414
KyrgyzstanKGKGZ417
LaosLALAO418
LatviaLVLVA428
LebanonLBLBN422
LesothoLSLSO426
LiberiaLRLBR430
LibyaLYLBY434
LiechtensteinLILIE438
LithuaniaLTLTU440
LuxembourgLULUX442
MacauMOMAC446
MacedoniaMKMKD807
MadagascarMGMDG450
MalawiMWMWI454
MalaysiaMYMYS458
MaldivesMVMDV462
MaliMLMLI466
MaltaMTMLT470
Marshall IslandsMHMHL584
MartiniqueMQMTQ474
MauritaniaMRMRT478
MauritiusMUMUS480
MayotteYTMYT175
MexicoMXMEX484
MicronesiaFMFSM583
MoldovaMDMDA498
MonacoMCMCO492
MongoliaMNMNG496
MontenegroMEMNE499
MontserratMSMSR500
MoroccoMAMAR504
MozambiqueMZMOZ508
MyanmarMMMMR104
NamibiaNANAM516
NauruNRNRU520
NepalNPNPL524
NetherlandsNLNLD528
New CaledoniaNCNCL540
New ZealandNZNZL554
NicaraguaNINIC558
NigerNENER562
NigeriaNGNGA566
NiueNUNIU570
Norfolk IslandNFNFK574
Northern Mariana IslandsMPMNP580
NorwayNONOR578
OmanOMOMN512
PakistanPKPAK586
PalauPWPLW585
PalestinePSPSE275
PanamaPAPAN591
Papua New GuineaPGPNG598
ParaguayPYPRY600
PeruPEPER604
PhilippinesPHPHL608
PitcairnPNPCN612
PolandPLPOL616
PortugalPTPRT620
Puerto RicoPRPRI630
QatarQAQAT634
ReunionREREU638
RomaniaROROU642
Russian FederationRURUS643
RwandaRWRWA646
Saint BarthélemyBLBLM652
Saint HelenaSHSHN654
Saint Kitts and NevisKNKNA659
Saint LuciaLCLCA662
Saint Martin (French part)MFMAF663
Saint Pierre and MiquelonPMSPM666
Saint Vincent and the GrenadinesVCVCT670
SamoaWSWSM882
San MarinoSMSMR674
Sao Tome and PrincipeSTSTP678
Saudi ArabiaSASAU682
SenegalSNSEN686
SerbiaRSSRB688
SeychellesSCSYC690
Sierra LeoneSLSLE694
SingaporeSGSGP702
Sint Maarten (Dutch part)SXSXM534
SlovakiaSKSVK703
SloveniaSISVN705
Solomon IslandsSBSLB90
SomaliaSOSOM706
South AfricaZAZAF710
South Georgia and South Sandwich IslandsGSSGS239
South SudanSSSSD728
SpainESESP724
Sri LankaLKLKA144
SudanSDSDN729
SurinameSRSUR740
Svalbard and Jan Mayen IslandsSJSJM744
SwazilandSZSWZ748
SwedenSESWE752
SwitzerlandCHCHE756
SyriaSYSYR760
TaiwanTWTWN158
TajikistanTJTJK762
TanzaniaTZTZA834
ThailandTHTHA764
Timor-LesteTLTLS626
TogoTGTGO768
TokelauTKTKL772
TongaTOTON776
Trinidad and TobagoTTTTO780
TunisiaTNTUN788
TurkeyTRTUR792
TurkmenistanTMTKM795
Turks and Caicos IslandsTCTCA796
TuvaluTVTUV798
UgandaUGUGA800
UkraineUAUKR804
United Arab EmiratesAEARE784
United KingdomGBGBR826
United States Minor Outlying IslandsUMUMI581
United States of America (or United States)USUSA840
UruguayUYURY858
UzbekistanUZUZB860
VanuatuVUVUT548
Vatican CityVAVAT336
VenezuelaVEVEN862
VietnamVNVNM704
Virgin Islands, BritishVGVGB92
Virgin Islands, U.S.VIVIR850
Wallis and Futuna IslandsWFWLF876
Western SaharaEHESH732
YemenYEYEM887
ZambiaZMZMB894
ZimbabweZWZWE716
note

The value Unknown will be returned if we cannot immediately determine the card's country of issuance from the bank identification number (BIN).