stripeconst

package
v0.0.0-...-2f3eae6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

View Source
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

View Source
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

View Source
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

View Source
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

View Source
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.

https://stripe.com/docs/currencies#zero-decimal

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL