Web.Stripe.Token
- data Token = Token {}
- newtype TokenId = TokenId {}
- createToken :: MonadIO m => RequestCard -> Maybe Amount -> Maybe Currency -> StripeT m Token
- getToken :: MonadIO m => TokenId -> StripeT m Token
- data UTCTime = UTCTime {
- utctDay :: Day
- utctDayTime :: DiffTime
- newtype Amount = Amount {}
- data Card = Card {
- cardType :: String
- cardCountry :: String
- cardLastFour :: String
- cardExpMonth :: Int
- cardExpYear :: Int
- newtype Currency = Currency {
- unCurrency :: String
- data SConfig = SConfig {}
- newtype StripeT m a = StripeT (StateT SConfig (ErrorT SFailure m) a)
- runStripeT :: MonadIO m => SConfig -> StripeT m a -> m (Either SFailure a)
Documentation
Represents a token in the Stripe system.
Constructors
Token | |
Represents the identifier for a given Token
in the Stripe system.
createToken :: MonadIO m => RequestCard -> Maybe Amount -> Maybe Currency -> StripeT m TokenSource
Creates a Token
in the Stripe system.
data UTCTime
This is the simplest representation of UTC. It consists of the day number, and a time offset from midnight. Note that if a day has a leap second added to it, it will have 86401 seconds.
Constructors
UTCTime | |
Fields
|
Represents an amount in cents in the Stripe system.
Represents a credit card in the Stripe system.
Constructors
Card | |
Fields
|
Represents a currency (e.g., usd) in the Stripe system. This is a 3-letter ISO code.
Constructors
Currency | |
Fields
|
Configuration for the StripeT
monad transformer.
Defines the monad transformer under which all Stripe REST API resource calls take place.