stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostPaymentMethods

Description

Contains the different functions to run the operation postPaymentMethods

Synopsis

Documentation

postPaymentMethods Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> Maybe PostPaymentMethodsRequestBody

The request body to send

-> m (Either HttpException (Response PostPaymentMethodsResponse))

Monad containing the result of the operation

POST /v1/payment_methods

<p>Creates a PaymentMethod object. Read the <a href="/docs/stripe-js/reference#stripe-create-payment-method">Stripe.js reference</a> to learn how to create PaymentMethods via Stripe.js.</p>

data PostPaymentMethodsRequestBody Source #

Defines the data type for the schema postPaymentMethodsRequestBody

Constructors

PostPaymentMethodsRequestBody 

Fields

data PostPaymentMethodsRequestBodyBillingDetails' Source #

Defines the data type for the schema postPaymentMethodsRequestBodyBilling_details'

Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.

data PostPaymentMethodsRequestBodyBillingDetails'Address' Source #

Defines the data type for the schema postPaymentMethodsRequestBodyBilling_details'Address'

Instances
Eq PostPaymentMethodsRequestBodyBillingDetails'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

Show PostPaymentMethodsRequestBodyBillingDetails'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

ToJSON PostPaymentMethodsRequestBodyBillingDetails'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

FromJSON PostPaymentMethodsRequestBodyBillingDetails'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

data PostPaymentMethodsRequestBodyCard' Source #

Defines the data type for the schema postPaymentMethodsRequestBodyCard'

If this is a \`card\` PaymentMethod, this hash contains the user\'s card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format \`card: {token: \"tok_visa\"}\`. When creating with a card number, you must meet the requirements for PCI compliance. We strongly recommend using Stripe.js instead of interacting with this API directly.

data PostPaymentMethodsRequestBodyFpx' Source #

Defines the data type for the schema postPaymentMethodsRequestBodyFpx'

If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.

data PostPaymentMethodsRequestBodyFpx'Bank' Source #

Defines the enum schema postPaymentMethodsRequestBodyFpx'Bank'

data PostPaymentMethodsRequestBodyIdeal' Source #

Defines the data type for the schema postPaymentMethodsRequestBodyIdeal'

If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.

data PostPaymentMethodsRequestBodyIdeal'Bank' Source #

Defines the enum schema postPaymentMethodsRequestBodyIdeal'Bank'

data PostPaymentMethodsRequestBodyMetadata' Source #

Defines the data type for the schema postPaymentMethodsRequestBodyMetadata'

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.

data PostPaymentMethodsRequestBodySepaDebit' Source #

Defines the data type for the schema postPaymentMethodsRequestBodySepa_debit'

If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.

Constructors

PostPaymentMethodsRequestBodySepaDebit' 

Fields

data PostPaymentMethodsRequestBodyType' Source #

Defines the enum schema postPaymentMethodsRequestBodyType'

The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. Required unless `payment_method` is specified (see the Cloning PaymentMethods guide)

data PostPaymentMethodsResponse Source #

Represents a response of the operation postPaymentMethods.

The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostPaymentMethodsResponseError is used.

Constructors

PostPaymentMethodsResponseError String

Means either no matching case available or a parse error

PostPaymentMethodsResponse200 PaymentMethod

Successful response.

PostPaymentMethodsResponseDefault Error

Error response.