Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ALL - Lek ALL string = "ALL" // STN - Dobra STN string = "STN" // EEK - Kroon EEK string = "EEK" // BHD - Bahraini Dinar BHD string = "BHD" // SCR - Seychelles Rupee SCR string = "SCR" // DJF - Djibouti Franc DJF string = "DJF" // EGP - Egyptian Pound EGP string = "EGP" // MDL - Moldovan Leu MDL string = "MDL" // MZN - Metical MZN string = "MZN" // BND - Brunei Dollar BND string = "BND" // ZMK - Zambian Kwacha ZMK string = "ZMK" // SHP - Saint Helena Pound SHP string = "SHP" // LBP - Lebanese Pound LBP string = "LBP" // AWG - Aruban Guilder AWG string = "AWG" // JMD - Jamaican Dollar JMD string = "JMD" // KES - Kenyan Shilling KES string = "KES" // BYN - Belarussian Ruble BYN string = "BYN" // KHR - Riel KHR string = "KHR" // LAK - Kip LAK string = "LAK" // MVR - Rufiyaa MVR string = "MVR" // AOA - Kwanza AOA string = "AOA" // TJS - Somoni TJS string = "TJS" // SVC - El Salvador Colon SVC string = "SVC" // GNF - Guinea Franc GNF string = "GNF" // BRL - Brazilian Real BRL string = "BRL" // MOP - Pataca MOP string = "MOP" // BOB - Boliviano BOB string = "BOB" // CDF - Congolese Franc CDF string = "CDF" // NAD - Namibia Dollar NAD string = "NAD" // LYD - Libyan Dinar LYD string = "LYD" // VUV - Vatu VUV string = "VUV" // QAR - Qatari Rial QAR string = "QAR" // CLP - Chilean Peso CLP string = "CLP" // HRK - Croatian Kuna HRK string = "HRK" // ISK - Iceland Krona ISK string = "ISK" // FKP - Falkland Islands Pound FKP string = "FKP" // XCD - East Caribbean Dollar XCD string = "XCD" // NOK - Norwegian Krone NOK string = "NOK" // CUP - Cuban Peso CUP string = "CUP" // VND - Dong VND string = "VND" // PEN - Nuevo Sol PEN string = "PEN" // KMF - Comoro Franc KMF string = "KMF" // LVL - Latvian Lats LVL string = "LVL" // MMK - Kyat MMK string = "MMK" // TRY - Turkish Lira TRY string = "TRY" // VEF - Bolivar Fuerte VEF string = "VEF" // AUD - Australian Dollar AUD string = "AUD" // TWD - New Taiwan Dollar TWD string = "TWD" // PKR - Pakistan Rupee PKR string = "PKR" // SLL - Leone SLL string = "SLL" // BGN - Bulgarian Lev BGN string = "BGN" // LRD - Liberian Dollar LRD string = "LRD" // LKR - Sri Lanka Rupee LKR string = "LKR" // XAF - CFA Franc BEAC XAF string = "XAF" // JOD - Jordanian Dinar JOD string = "JOD" // ANG - Netherlands Antillian Guilder ANG string = "ANG" // BSD - Bahamian Dollar BSD string = "BSD" // CAD - Canadian Dollar CAD string = "CAD" // GIP - Gibraltar Pound GIP string = "GIP" // MNT - Tugrik MNT string = "MNT" // LTL - Lithuanian Litas LTL string = "LTL" // BBD - Barbados Dollar BBD string = "BBD" // CLF - Unidades de fomento CLF string = "CLF" // BWP - Pula BWP string = "BWP" // COP - Colombian Peso COP string = "COP" // PHP - Philippine Peso PHP string = "PHP" // HUF - Forint HUF string = "HUF" // FJD - Fiji Dollar FJD string = "FJD" // MWK - Kwacha MWK string = "MWK" // THB - Baht THB string = "THB" // XPF - CFP Franc XPF string = "XPF" // RSD - Serbian Dinar RSD string = "RSD" // SAR - Saudi Riyal SAR string = "SAR" // UYU - Peso Uruguayo UYU string = "UYU" // BZD - Belize Dollar BZD string = "BZD" // SYP - Syrian Pound SYP string = "SYP" // GMD - Dalasi GMD string = "GMD" // SZL - Lilangeni SZL string = "SZL" // SBD - Solomon Islands Dollar SBD string = "SBD" // ETB - Ethiopian Birr ETB string = "ETB" // CHF - Swiss Franc CHF string = "CHF" // MXN - Mexican Peso MXN string = "MXN" // ARS - Argentine Peso ARS string = "ARS" // GTQ - Quetzal GTQ string = "GTQ" // GHS - Cedi GHS string = "GHS" // NIO - Cordoba Oro NIO string = "NIO" // JPY - Yen JPY string = "JPY" // BDT - Taka BDT string = "BDT" // UZS - Uzbekistan Sum UZS string = "UZS" // SOS - Somali Shilling SOS string = "SOS" // BTN - Ngultrum BTN string = "BTN" // NZD - New Zealand Dollar NZD string = "NZD" // TZS - Tanzanian Shilling TZS string = "TZS" // IQD - Iraqi Dinar IQD string = "IQD" // MGA - Malagasy Ariary MGA string = "MGA" // DZD - Algerian Dinar DZD string = "DZD" // GYD - Guyana Dollar GYD string = "GYD" // USD - US Dollar USD string = "USD" // KWD - Kuwaiti Dinar KWD string = "KWD" // CNY - Yuan Renminbi CNY string = "CNY" // PYG - Guarani PYG string = "PYG" // SGD - Singapore Dollar SGD string = "SGD" // KZT - Tenge KZT string = "KZT" // PGK - Kina PGK string = "PGK" // AMD - Armenian Dram AMD string = "AMD" // GBP - Pound Sterling GBP string = "GBP" // AFN - Afghani AFN string = "AFN" // CRC - Costa Rican Colon CRC string = "CRC" // XOF - CFA Franc BCEAO XOF string = "XOF" // YER - Yemeni Rial YER string = "YER" // MRU - Ouguiya MRU string = "MRU" // DKK - Danish Krone DKK string = "DKK" // TOP - Paanga TOP string = "TOP" // INR - Indian Rupee INR string = "INR" // SDG - Sudanese Pound SDG string = "SDG" // DOP - Dominican Peso DOP string = "DOP" // ZWL - Zimbabwe Dollar ZWL string = "ZWL" // UGX - Uganda Shilling UGX string = "UGX" // SEK - Swedish Krona SEK string = "SEK" // LSL - Loti LSL string = "LSL" // MYR - Malaysian Ringgit MYR string = "MYR" // TMT - Manat TMT string = "TMT" // OMR - Rial Omani OMR string = "OMR" // BMD - Bermudian Dollar BMD string = "BMD" // KRW - Won KRW string = "KRW" // HKD - Hong Kong Dollar HKD string = "HKD" // KGS - Som KGS string = "KGS" // BAM - Convertible Marks BAM string = "BAM" // NGN - Naira NGN string = "NGN" // ILS - New Israeli Sheqel ILS string = "ILS" // MUR - Mauritius Rupee MUR string = "MUR" // RON - New Leu RON string = "RON" // TND - Tunisian Dinar TND string = "TND" // AED - UAE Dirham AED string = "AED" // PAB - Balboa PAB string = "PAB" // NPR - Nepalese Rupee NPR string = "NPR" // TTD - Trinidad and Tobago Dollar TTD string = "TTD" // RWF - Rwanda Franc RWF string = "RWF" // HTG - Gourde HTG string = "HTG" // IDR - Rupiah IDR string = "IDR" // EUR - Euro EUR string = "EUR" // KYD - Cayman Islands Dollar KYD string = "KYD" // IRR - Iranian Rial IRR string = "IRR" // KPW - North Korean Won KPW string = "KPW" // MKD - Denar MKD string = "MKD" // SRD - Surinam Dollar SRD string = "SRD" // HNL - Lempira HNL string = "HNL" // AZN - Azerbaijanian Manat AZN string = "AZN" // ERN - Nakfa ERN string = "ERN" // CZK - Czech Koruna CZK string = "CZK" // CVE - Cape Verde Escudo CVE string = "CVE" // BIF - Burundi Franc BIF string = "BIF" // MAD - Moroccan Dirham MAD string = "MAD" // RUB - Russian Ruble RUB string = "RUB" // UAH - Hryvnia UAH string = "UAH" // WST - Tala WST string = "WST" // PLN - Zloty PLN string = "PLN" // ZAR - Rand ZAR string = "ZAR" // GEL - Lari GEL string = "GEL" // ZMW - Zambian kwacha ZMW string = "ZMW" )
View Source
const ( // LiveSecretKeyRegex ... LiveSecretKeyRegex = `^sk_?(\w{8})-(\w{4})-(\w{4})-(\w{4})-(\w{12})$` // LivePublicKeyRegex ... LivePublicKeyRegex = `^pk_?(\w{8})-(\w{4})-(\w{4})-(\w{4})-(\w{12})$` // SandboxSecretKeyRegex ... SandboxSecretKeyRegex = `^sk_test_?(\w{8})-(\w{4})-(\w{4})-(\w{4})-(\w{12})$` // SandboxPublicKeyRegex ... SandboxPublicKeyRegex = `^pk_test_?(\w{8})-(\w{4})-(\w{4})-(\w{4})-(\w{12})$` FourKeyRegex = `^(pk|sk)_(sbox_)?[a-z2-7]{26}[a-z2-7*#$=]$` FourOAuthJwtPattern = `^([a-zA-Z0-9_=]+)\.([a-zA-Z0-9_=]+)\.([a-zA-Z0-9_\-\+\/=]*)` // CardTokenRegex ... CardTokenRegex = `^(tok)_(\w{26})$` // SourceIDRegex ... SourceIDRegex = `^(src)_(\w{26})$` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { AddressLine1 string `json:"address_line1,omitempty"` AddressLine2 string `json:"address_line2,omitempty"` City string `json:"city,omitempty"` State string `json:"state,omitempty"` ZIP string `json:"zip,omitempty"` Country string `json:"country,omitempty"` }
Address - Defines a postal address.
type CardCategory ¶
type CardCategory string
CardCategory ...
const ( // Consumer ... Consumer CardCategory = "Consumer" // Commercial ... Commercial CardCategory = "Commercial" )
type ErrorDetails ¶
type ErrorDetails struct { RequestID string `json:"request_id,omitempty"` ErrorType string `json:"error_type,omitempty"` ErrorCodes []string `json:"error_codes,omitempty"` }
ErrorDetails ...
type PaymentAction ¶
type PaymentAction string
PaymentStatus ...
const ( // Authorized ... Authorized PaymentAction = "Authorized" // Pending ... Pending PaymentAction = "Pending" // CardVerified ... CardVerified PaymentAction = "Card Verified" // Captured ... Captured PaymentAction = "Captured" // Declined ... Declined PaymentAction = "Declined" // Paid ... Paid PaymentAction = "Paid" )
func (PaymentAction) String ¶
func (c PaymentAction) String() string
type PaymentType ¶
type PaymentType string
PaymentType ...
const ( // Regular ... Regular PaymentType = "Regular" // Recurring ... Recurring PaymentType = "Recurring" // MOTO ... MOTO PaymentType = "MOTO" )
func (PaymentType) String ¶
func (c PaymentType) String() string
type Phone ¶
type Phone struct { CountryCode string `json:"country_code,omitempty"` Number string `json:"number,omitempty"` }
Phone ...
type WebhookContentType ¶
type WebhookContentType string
WebhookContentType ...
const ( // JSON ... JSON WebhookContentType = "json" // XML ... XML WebhookContentType = "xml" )
func (WebhookContentType) String ¶
func (c WebhookContentType) String() string
Click to show internal directories.
Click to hide internal directories.