Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EuropeanCountries = mapset.NewThreadUnsafeSet(
"AD",
"AT",
"BE",
"BG",
"CY",
"CZ",
"DE",
"DK",
"EE",
"ES",
"FI",
"FO",
"FR",
"GG",
"GI",
"GL",
"GR",
"HR",
"HU",
"IE",
"IL",
"IM",
"IS",
"IT",
"JE",
"LI",
"LT",
"LU",
"LV",
"MC",
"MT",
"NL",
"NO",
"PL",
"PM",
"PT",
"RO",
"SE",
"SI",
"SK",
"SM",
"TR",
"VA",
"GB",
)
EuropeanCountries is the set of countries that Stripe considers to be part of Europe.
https://stripe.com/docs/currencies#european-credit-cards
var MinimumAmounts = map[string]int64{
"AED": 200,
"AUD": 50,
"BGN": 100,
"BRL": 50,
"CAD": 50,
"CHF": 50,
"CZK": 1500,
"DKK": 250,
"EUR": 50,
"GBP": 30,
"HKD": 400,
"HRK": 50,
"HUF": 17500,
"INR": 50,
"JPY": 50,
"MXN": 1000,
"MYR": 200,
"NOK": 300,
"NZD": 50,
"PLN": 200,
"RON": 200,
"SEK": 300,
"SGD": 50,
"THB": 1000,
"USD": 50,
}
MinimumAmounts is a map of currencies to the minimum amount Stripe will allow for a charge.
This is based on the settlement currency. It's unclear what exchange rates Stripe uses to map to the settlement currency.
https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts
var SpecialCaseCurrencies = mapset.NewThreadUnsafeSet(
"ISK",
"HUF",
"TWD",
"UGX",
)
SpecialCaseCurrencies is a set of currencies that have special rules.
Practically, amounts in these currencies are required to be integer multiples of 100 in some situations.
https://stripe.com/docs/currencies#special-cases
var SupportedCurrenciesPaypal = []string{
"AUD",
"CAD",
"CHF",
"CZK",
"DKK",
"EUR",
"GBP",
"HKD",
"NOK",
"NZD",
"PLN",
"SEK",
"SGD",
"USD",
}
SupportedCurrenciesPaypal is a list of currencies supported for presentment when using PayPal as a payment method.
https://stripe.com/docs/payments/paypal
var ThreeDecimalCurrencies = mapset.NewThreadUnsafeSet(
"BHD",
"JOD",
"KWD",
"OMR",
"TND",
)
ThreeDecimalCurrencies is a set of currencies that have three decimal places.
https://stripe.com/docs/currencies#three-decimal
var ZeroDecimalCurrencies = mapset.NewThreadUnsafeSet(
"BIF",
"CLP",
"DJF",
"GNF",
"JPY",
"KMF",
"KRW",
"MGA",
"PYG",
"RWF",
"UGX",
"VND",
"VUV",
"XAF",
"XOF",
"XPF",
)
ZeroDecimalCurrencies is a set of currencies that have zero decimal places.
Functions ¶
This section is empty.
Types ¶
This section is empty.