PHP Class PayPal\Api\CountryCode

The ISO 3166-1 alpha-2 country code. A complete list of valid codes is available at Wikipedia: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 In particular, note that the country code for Great Britain is GB, not UK as used in that country's top-level domain names.
Inheritance: extends PayPal\Common\PayPalModel
Show file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getCountryCode ( ) : string ISO country code based on 2-character IS0-3166-1 codes.
setCountryCode ( string $country_code ) ISO country code based on 2-character IS0-3166-1 codes.

Method Details

getCountryCode() public method

ISO country code based on 2-character IS0-3166-1 codes.
public getCountryCode ( ) : string
return string

setCountryCode() public method

ISO country code based on 2-character IS0-3166-1 codes.
public setCountryCode ( string $country_code )
$country_code string