# `Stripe.PaymentIntent`
[🔗](https://github.com/code-corps/stripity_stripe/blob/v3.3.3/lib/generated/payment_intent.ex#L1)

A PaymentIntent guides you through the process of collecting a payment from your customer.
We recommend that you create exactly one PaymentIntent for each order or
customer session in your system. You can reference the PaymentIntent later to
see the history of payment attempts for a particular session.

A PaymentIntent transitions through
[multiple statuses](https://stripe.com/docs/payments/intents#intent-statuses)
throughout its lifetime as it interfaces with Stripe.js to perform
authentication flows and ultimately creates at most one successful charge.

Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents)

# `acss_debit`

```elixir
@type acss_debit() :: %{
  optional(:mandate_options) =&gt; mandate_options(),
  optional(:setup_future_usage) =&gt; :none | :off_session | :on_session,
  optional(:target_date) =&gt; binary(),
  optional(:verification_method) =&gt; :automatic | :instant | :microdeposits
}
```

# `address`

```elixir
@type address() :: %{
  optional(:city) =&gt; binary(),
  optional(:country) =&gt; binary(),
  optional(:line1) =&gt; binary(),
  optional(:line2) =&gt; binary(),
  optional(:postal_code) =&gt; binary(),
  optional(:state) =&gt; binary()
}
```

# `affirm`

```elixir
@type affirm() :: %{
  optional(:capture_method) =&gt; :manual,
  optional(:preferred_locale) =&gt; binary(),
  optional(:setup_future_usage) =&gt; :none
}
```

# `afterpay_clearpay`

```elixir
@type afterpay_clearpay() :: %{
  optional(:capture_method) =&gt; :manual,
  optional(:reference) =&gt; binary(),
  optional(:setup_future_usage) =&gt; :none
}
```

# `alipay`

```elixir
@type alipay() :: %{optional(:setup_future_usage) =&gt; :none | :off_session}
```

# `alma`

```elixir
@type alma() :: %{optional(:capture_method) =&gt; :manual}
```

# `amazon_pay`

```elixir
@type amazon_pay() :: %{
  optional(:capture_method) =&gt; :manual,
  optional(:setup_future_usage) =&gt; :none | :off_session
}
```

# `amount_details`

```elixir
@type amount_details() :: %{
  optional(:discount_amount) =&gt; integer() | binary(),
  optional(:line_items) =&gt; [line_items()] | binary(),
  optional(:shipping) =&gt; shipping() | binary(),
  optional(:tax) =&gt; tax() | binary()
}
```

Provides industry-specific information about the amount.

# `au_becs_debit`

```elixir
@type au_becs_debit() :: %{
  optional(:setup_future_usage) =&gt; :none | :off_session | :on_session,
  optional(:target_date) =&gt; binary()
}
```

# `automatic_payment_methods`

```elixir
@type automatic_payment_methods() :: %{
  optional(:allow_redirects) =&gt; :always | :never,
  optional(:enabled) =&gt; boolean()
}
```

When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.

# `bacs_debit`

```elixir
@type bacs_debit() :: %{
  optional(:mandate_options) =&gt; mandate_options(),
  optional(:setup_future_usage) =&gt; :none | :off_session | :on_session,
  optional(:target_date) =&gt; binary()
}
```

# `bancontact`

```elixir
@type bancontact() :: %{
  optional(:preferred_language) =&gt; :de | :en | :fr | :nl,
  optional(:setup_future_usage) =&gt; :none | :off_session
}
```

# `bank_transfer`

```elixir
@type bank_transfer() :: %{
  optional(:eu_bank_transfer) =&gt; eu_bank_transfer(),
  optional(:requested_address_types) =&gt; [
    :aba | :iban | :sepa | :sort_code | :spei | :swift | :zengin
  ],
  optional(:type) =&gt;
    :eu_bank_transfer
    | :gb_bank_transfer
    | :jp_bank_transfer
    | :mx_bank_transfer
    | :us_bank_transfer
}
```

Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.

# `billie`

```elixir
@type billie() :: %{optional(:capture_method) =&gt; :manual}
```

# `billing_details`

```elixir
@type billing_details() :: %{
  optional(:address) =&gt; address() | binary(),
  optional(:email) =&gt; binary() | binary(),
  optional(:name) =&gt; binary() | binary(),
  optional(:phone) =&gt; binary() | binary(),
  optional(:tax_id) =&gt; binary()
}
```

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

# `blik`

```elixir
@type blik() :: %{optional(:code) =&gt; binary(), optional(:setup_future_usage) =&gt; :none}
```

# `boleto`

```elixir
@type boleto() :: %{optional(:tax_id) =&gt; binary()}
```

If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.

# `card`

```elixir
@type card() :: %{optional(:commodity_code) =&gt; binary()}
```

This sub-hash contains line item details that are specific to `card` payment method."

# `card_present`

```elixir
@type card_present() :: %{optional(:commodity_code) =&gt; binary()}
```

This sub-hash contains line item details that are specific to `card_present` payment method."

# `cartes_bancaires`

```elixir
@type cartes_bancaires() :: %{
  optional(:cb_avalgo) =&gt; :&quot;0&quot; | :&quot;1&quot; | :&quot;2&quot; | :&quot;3&quot; | :&quot;4&quot; | :A,
  optional(:cb_exemption) =&gt; binary(),
  optional(:cb_score) =&gt; integer()
}
```

Cartes Bancaires-specific 3DS fields.

# `cashapp`

```elixir
@type cashapp() :: %{
  optional(:capture_method) =&gt; :manual,
  optional(:setup_future_usage) =&gt; :none | :off_session | :on_session
}
```

# `created`

```elixir
@type created() :: %{
  optional(:gt) =&gt; integer(),
  optional(:gte) =&gt; integer(),
  optional(:lt) =&gt; integer(),
  optional(:lte) =&gt; integer()
}
```

# `crypto`

```elixir
@type crypto() :: %{optional(:setup_future_usage) =&gt; :none}
```

# `customer_acceptance`

```elixir
@type customer_acceptance() :: %{
  optional(:accepted_at) =&gt; integer(),
  optional(:offline) =&gt; map(),
  optional(:online) =&gt; online(),
  optional(:type) =&gt; :offline | :online
}
```

This hash contains details about the customer acceptance of the Mandate.

# `customer_balance`

```elixir
@type customer_balance() :: %{
  optional(:bank_transfer) =&gt; bank_transfer(),
  optional(:funding_type) =&gt; :bank_transfer,
  optional(:setup_future_usage) =&gt; :none
}
```

# `dob`

```elixir
@type dob() :: %{
  optional(:day) =&gt; integer(),
  optional(:month) =&gt; integer(),
  optional(:year) =&gt; integer()
}
```

Customer's date of birth

# `eps`

```elixir
@type eps() :: %{
  optional(:bank) =&gt;
    :arzte_und_apotheker_bank
    | :austrian_anadi_bank_ag
    | :bank_austria
    | :bankhaus_carl_spangler
    | :bankhaus_schelhammer_und_schattera_ag
    | :bawag_psk_ag
    | :bks_bank_ag
    | :brull_kallmus_bank_ag
    | :btv_vier_lander_bank
    | :capital_bank_grawe_gruppe_ag
    | :deutsche_bank_ag
    | :dolomitenbank
    | :easybank_ag
    | :erste_bank_und_sparkassen
    | :hypo_alpeadriabank_international_ag
    | :hypo_bank_burgenland_aktiengesellschaft
    | :hypo_noe_lb_fur_niederosterreich_u_wien
    | :hypo_oberosterreich_salzburg_steiermark
    | :hypo_tirol_bank_ag
    | :hypo_vorarlberg_bank_ag
    | :marchfelder_bank
    | :oberbank_ag
    | :raiffeisen_bankengruppe_osterreich
    | :schoellerbank_ag
    | :sparda_bank_wien
    | :volksbank_gruppe
    | :volkskreditbank_ag
    | :vr_bank_braunau
}
```

If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.

# `eu_bank_transfer`

```elixir
@type eu_bank_transfer() :: %{optional(:country) =&gt; binary()}
```

Configuration for the eu_bank_transfer funding type.

# `filters`

```elixir
@type filters() :: %{optional(:account_subcategories) =&gt; [:checking | :savings]}
```

Provide filters for the linked accounts that the customer can select for the payment method.

# `financial_connections`

```elixir
@type financial_connections() :: %{
  optional(:filters) =&gt; filters(),
  optional(:permissions) =&gt; [
    :balances | :ownership | :payment_method | :transactions
  ],
  optional(:prefetch) =&gt; [:balances | :ownership | :transactions],
  optional(:return_url) =&gt; binary()
}
```

Additional fields for Financial Connections Session creation

# `fpx`

```elixir
@type fpx() :: %{optional(:setup_future_usage) =&gt; :none}
```

# `giropay`

```elixir
@type giropay() :: %{optional(:setup_future_usage) =&gt; :none}
```

# `grabpay`

```elixir
@type grabpay() :: %{optional(:setup_future_usage) =&gt; :none}
```

# `hooks`

```elixir
@type hooks() :: %{optional(:inputs) =&gt; inputs()}
```

Automations to be run during the PaymentIntent lifecycle

# `ideal`

```elixir
@type ideal() :: %{
  optional(:bank) =&gt;
    :abn_amro
    | :asn_bank
    | :bunq
    | :buut
    | :finom
    | :handelsbanken
    | :ing
    | :knab
    | :moneyou
    | :n26
    | :nn
    | :rabobank
    | :regiobank
    | :revolut
    | :sns_bank
    | :triodos_bank
    | :van_lanschot
    | :yoursafe
}
```

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

# `inputs`

```elixir
@type inputs() :: %{optional(:tax) =&gt; tax()}
```

Arguments passed in automations

# `installments`

```elixir
@type installments() :: %{
  optional(:enabled) =&gt; boolean(),
  optional(:plan) =&gt; plan() | binary()
}
```

Installment configuration for payments attempted on this PaymentIntent.

For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).

# `kakao_pay`

```elixir
@type kakao_pay() :: %{
  optional(:capture_method) =&gt; :manual,
  optional(:setup_future_usage) =&gt; :none | :off_session
}
```

# `klarna`

```elixir
@type klarna() :: %{
  optional(:image_url) =&gt; binary(),
  optional(:product_url) =&gt; binary(),
  optional(:reference) =&gt; binary(),
  optional(:subscription_reference) =&gt; binary()
}
```

This sub-hash contains line item details that are specific to `klarna` payment method."

# `konbini`

```elixir
@type konbini() :: %{
  optional(:confirmation_number) =&gt; binary() | binary(),
  optional(:expires_after_days) =&gt; integer() | binary(),
  optional(:expires_at) =&gt; integer() | binary(),
  optional(:product_description) =&gt; binary() | binary(),
  optional(:setup_future_usage) =&gt; :none
}
```

# `kr_card`

```elixir
@type kr_card() :: %{
  optional(:capture_method) =&gt; :manual,
  optional(:setup_future_usage) =&gt; :none | :off_session
}
```

# `line_items`

```elixir
@type line_items() :: %{
  optional(:discount_amount) =&gt; integer(),
  optional(:payment_method_options) =&gt; payment_method_options(),
  optional(:product_code) =&gt; binary(),
  optional(:product_name) =&gt; binary(),
  optional(:quantity) =&gt; integer(),
  optional(:tax) =&gt; tax(),
  optional(:unit_cost) =&gt; integer(),
  optional(:unit_of_measure) =&gt; binary()
}
```

# `link`

```elixir
@type link() :: %{
  optional(:capture_method) =&gt; :manual,
  optional(:persistent_token) =&gt; binary(),
  optional(:setup_future_usage) =&gt; :none | :off_session
}
```

# `mandate_data`

```elixir
@type mandate_data() :: %{optional(:customer_acceptance) =&gt; customer_acceptance()}
```

# `mandate_options`

```elixir
@type mandate_options() :: %{
  optional(:custom_mandate_url) =&gt; binary() | binary(),
  optional(:interval_description) =&gt; binary(),
  optional(:payment_schedule) =&gt; :combined | :interval | :sporadic,
  optional(:transaction_type) =&gt; :business | :personal
}
```

Additional fields for Mandate creation

# `mb_way`

```elixir
@type mb_way() :: %{optional(:setup_future_usage) =&gt; :none}
```

# `mobilepay`

```elixir
@type mobilepay() :: %{
  optional(:capture_method) =&gt; :manual,
  optional(:setup_future_usage) =&gt; :none
}
```

# `multibanco`

```elixir
@type multibanco() :: %{optional(:setup_future_usage) =&gt; :none}
```

# `naver_pay`

```elixir
@type naver_pay() :: %{
  optional(:capture_method) =&gt; :manual,
  optional(:setup_future_usage) =&gt; :none | :off_session
}
```

# `network_options`

```elixir
@type network_options() :: %{optional(:cartes_bancaires) =&gt; cartes_bancaires()}
```

Network specific 3DS fields. Network specific arguments require an
explicit card brand choice. The parameter `payment_method_options.card.network``
must be populated accordingly

# `networks`

```elixir
@type networks() :: %{optional(:requested) =&gt; [:ach | :us_domestic_wire]}
```

Additional fields for network related functions

# `next_billing`

```elixir
@type next_billing() :: %{optional(:amount) =&gt; integer(), optional(:date) =&gt; binary()}
```

Describes the upcoming charge for this subscription.

# `nz_bank_account`

```elixir
@type nz_bank_account() :: %{
  optional(:setup_future_usage) =&gt; :none | :off_session | :on_session,
  optional(:target_date) =&gt; binary()
}
```

# `on_demand`

```elixir
@type on_demand() :: %{
  optional(:average_amount) =&gt; integer(),
  optional(:maximum_amount) =&gt; integer(),
  optional(:minimum_amount) =&gt; integer(),
  optional(:purchase_interval) =&gt; :day | :month | :week | :year,
  optional(:purchase_interval_count) =&gt; integer()
}
```

On-demand details if setting up or charging an on-demand payment.

# `online`

```elixir
@type online() :: %{
  optional(:ip_address) =&gt; binary(),
  optional(:user_agent) =&gt; binary()
}
```

If this is a Mandate accepted online, this hash contains details about the online acceptance.

# `oxxo`

```elixir
@type oxxo() :: %{
  optional(:expires_after_days) =&gt; integer(),
  optional(:setup_future_usage) =&gt; :none
}
```

# `p24`

```elixir
@type p24() :: %{
  optional(:bank) =&gt;
    :alior_bank
    | :bank_millennium
    | :bank_nowy_bfg_sa
    | :bank_pekao_sa
    | :banki_spbdzielcze
    | :blik
    | :bnp_paribas
    | :boz
    | :citi_handlowy
    | :credit_agricole
    | :envelobank
    | :etransfer_pocztowy24
    | :getin_bank
    | :ideabank
    | :ing
    | :inteligo
    | :mbank_mtransfer
    | :nest_przelew
    | :noble_pay
    | :pbac_z_ipko
    | :plus_bank
    | :santander_przelew24
    | :tmobile_usbugi_bankowe
    | :toyota_bank
    | :velobank
    | :volkswagen_bank
}
```

If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.

# `payco`

```elixir
@type payco() :: %{optional(:capture_method) =&gt; :manual}
```

# `payment_details`

```elixir
@type payment_details() :: %{
  optional(:customer_reference) =&gt; binary() | binary(),
  optional(:order_reference) =&gt; binary() | binary()
}
```

Provides industry-specific information about the charge.

# `payment_method_data`

```elixir
@type payment_method_data() :: %{
  optional(:sofort) =&gt; sofort(),
  optional(:customer_balance) =&gt; map(),
  optional(:satispay) =&gt; map(),
  optional(:boleto) =&gt; boleto(),
  optional(:alipay) =&gt; map(),
  optional(:au_becs_debit) =&gt; au_becs_debit(),
  optional(:amazon_pay) =&gt; map(),
  optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()},
  optional(:bancontact) =&gt; map(),
  optional(:interac_present) =&gt; map(),
  optional(:bacs_debit) =&gt; bacs_debit(),
  optional(:affirm) =&gt; map(),
  optional(:billing_details) =&gt; billing_details(),
  optional(:mobilepay) =&gt; map(),
  optional(:pay_by_bank) =&gt; map(),
  optional(:nz_bank_account) =&gt; nz_bank_account(),
  optional(:grabpay) =&gt; map(),
  optional(:eps) =&gt; eps(),
  optional(:billie) =&gt; map(),
  optional(:ideal) =&gt; ideal(),
  optional(:pix) =&gt; map(),
  optional(:giropay) =&gt; map(),
  optional(:multibanco) =&gt; map(),
  optional(:revolut_pay) =&gt; map(),
  optional(:klarna) =&gt; klarna(),
  optional(:mb_way) =&gt; map(),
  optional(:twint) =&gt; map(),
  optional(:naver_pay) =&gt; naver_pay(),
  optional(:crypto) =&gt; map(),
  optional(:acss_debit) =&gt; acss_debit(),
  optional(:link) =&gt; map(),
  optional(:kr_card) =&gt; map(),
  optional(:konbini) =&gt; map(),
  optional(:blik) =&gt; map(),
  optional(:p24) =&gt; p24(),
  optional(:paypal) =&gt; map(),
  optional(:fpx) =&gt; fpx(),
  optional(:oxxo) =&gt; map(),
  optional(:paynow) =&gt; map(),
  optional(:alma) =&gt; map(),
  optional(:wechat_pay) =&gt; map(),
  optional(:promptpay) =&gt; map(),
  optional(:type) =&gt;
    :acss_debit
    | :affirm
    | :afterpay_clearpay
    | :alipay
    | :alma
    | :amazon_pay
    | :au_becs_debit
    | :bacs_debit
    | :bancontact
    | :billie
    | :blik
    | :boleto
    | :cashapp
    | :crypto
    | :customer_balance
    | :eps
    | :fpx
    | :giropay
    | :grabpay
    | :ideal
    | :kakao_pay
    | :klarna
    | :konbini
    | :kr_card
    | :link
    | :mb_way
    | :mobilepay
    | :multibanco
    | :naver_pay
    | :nz_bank_account
    | :oxxo
    | :p24
    | :pay_by_bank
    | :payco
    | :paynow
    | :paypal
    | :pix
    | :promptpay
    | :revolut_pay
    | :samsung_pay
    | :satispay
    | :sepa_debit
    | :sofort
    | :swish
    | :twint
    | :us_bank_account
    | :wechat_pay
    | :zip,
  optional(:samsung_pay) =&gt; map(),
  optional(:kakao_pay) =&gt; map(),
  optional(:radar_options) =&gt; radar_options(),
  optional(:cashapp) =&gt; map(),
  optional(:sepa_debit) =&gt; sepa_debit(),
  optional(:afterpay_clearpay) =&gt; map(),
  optional(:payco) =&gt; map(),
  optional(:allow_redisplay) =&gt; :always | :limited | :unspecified,
  optional(:us_bank_account) =&gt; us_bank_account(),
  optional(:swish) =&gt; map(),
  optional(:zip) =&gt; map()
}
```

If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
in the [payment_method](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
property on the PaymentIntent.

# `payment_method_options`

```elixir
@type payment_method_options() :: %{
  optional(:sofort) =&gt; sofort() | binary(),
  optional(:customer_balance) =&gt; customer_balance() | binary(),
  optional(:satispay) =&gt; satispay() | binary(),
  optional(:boleto) =&gt; boleto() | binary(),
  optional(:alipay) =&gt; alipay() | binary(),
  optional(:au_becs_debit) =&gt; au_becs_debit() | binary(),
  optional(:amazon_pay) =&gt; amazon_pay() | binary(),
  optional(:card_present) =&gt; card_present() | binary(),
  optional(:bancontact) =&gt; bancontact() | binary(),
  optional(:interac_present) =&gt; map() | binary(),
  optional(:bacs_debit) =&gt; bacs_debit() | binary(),
  optional(:affirm) =&gt; affirm() | binary(),
  optional(:mobilepay) =&gt; mobilepay() | binary(),
  optional(:pay_by_bank) =&gt; map() | binary(),
  optional(:nz_bank_account) =&gt; nz_bank_account() | binary(),
  optional(:grabpay) =&gt; grabpay() | binary(),
  optional(:eps) =&gt; eps() | binary(),
  optional(:billie) =&gt; billie() | binary(),
  optional(:ideal) =&gt; ideal() | binary(),
  optional(:pix) =&gt; pix() | binary(),
  optional(:giropay) =&gt; giropay() | binary(),
  optional(:multibanco) =&gt; multibanco() | binary(),
  optional(:revolut_pay) =&gt; revolut_pay() | binary(),
  optional(:klarna) =&gt; klarna() | binary(),
  optional(:card) =&gt; card() | binary(),
  optional(:mb_way) =&gt; mb_way() | binary(),
  optional(:twint) =&gt; twint() | binary(),
  optional(:naver_pay) =&gt; naver_pay() | binary(),
  optional(:crypto) =&gt; crypto() | binary(),
  optional(:acss_debit) =&gt; acss_debit() | binary(),
  optional(:link) =&gt; link() | binary(),
  optional(:kr_card) =&gt; kr_card() | binary(),
  optional(:konbini) =&gt; konbini() | binary(),
  optional(:blik) =&gt; blik() | binary(),
  optional(:p24) =&gt; p24() | binary(),
  optional(:paypal) =&gt; paypal() | binary(),
  optional(:fpx) =&gt; fpx() | binary(),
  optional(:oxxo) =&gt; oxxo() | binary(),
  optional(:paynow) =&gt; paynow() | binary(),
  optional(:alma) =&gt; alma() | binary(),
  optional(:wechat_pay) =&gt; wechat_pay() | binary(),
  optional(:promptpay) =&gt; promptpay() | binary(),
  optional(:samsung_pay) =&gt; samsung_pay() | binary(),
  optional(:kakao_pay) =&gt; kakao_pay() | binary(),
  optional(:cashapp) =&gt; cashapp() | binary(),
  optional(:sepa_debit) =&gt; sepa_debit() | binary(),
  optional(:afterpay_clearpay) =&gt; afterpay_clearpay() | binary(),
  optional(:payco) =&gt; payco() | binary(),
  optional(:us_bank_account) =&gt; us_bank_account() | binary(),
  optional(:swish) =&gt; swish() | binary(),
  optional(:zip) =&gt; zip() | binary()
}
```

Payment method-specific configuration for this PaymentIntent.

# `paynow`

```elixir
@type paynow() :: %{optional(:setup_future_usage) =&gt; :none}
```

# `paypal`

```elixir
@type paypal() :: %{
  optional(:category) =&gt; :digital_goods | :donation | :physical_goods,
  optional(:description) =&gt; binary(),
  optional(:sold_by) =&gt; binary()
}
```

This sub-hash contains line item details that are specific to `paypal` payment method."

# `pix`

```elixir
@type pix() :: %{
  optional(:amount_includes_iof) =&gt; :always | :never,
  optional(:expires_after_seconds) =&gt; integer(),
  optional(:expires_at) =&gt; integer(),
  optional(:setup_future_usage) =&gt; :none
}
```

# `plan`

```elixir
@type plan() :: %{
  optional(:count) =&gt; integer(),
  optional(:interval) =&gt; :month,
  optional(:type) =&gt; :bonus | :fixed_count | :revolving
}
```

# `promptpay`

```elixir
@type promptpay() :: %{optional(:setup_future_usage) =&gt; :none}
```

# `radar_options`

```elixir
@type radar_options() :: %{optional(:session) =&gt; binary()}
```

Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.

# `revolut_pay`

```elixir
@type revolut_pay() :: %{
  optional(:capture_method) =&gt; :manual,
  optional(:setup_future_usage) =&gt; :none | :off_session
}
```

# `routing`

```elixir
@type routing() :: %{optional(:requested_priority) =&gt; :domestic | :international}
```

Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.

# `samsung_pay`

```elixir
@type samsung_pay() :: %{optional(:capture_method) =&gt; :manual}
```

# `satispay`

```elixir
@type satispay() :: %{optional(:capture_method) =&gt; :manual}
```

# `sepa_debit`

```elixir
@type sepa_debit() :: %{
  optional(:mandate_options) =&gt; mandate_options(),
  optional(:setup_future_usage) =&gt; :none | :off_session | :on_session,
  optional(:target_date) =&gt; binary()
}
```

# `shipping`

```elixir
@type shipping() :: %{
  optional(:address) =&gt; address(),
  optional(:carrier) =&gt; binary(),
  optional(:name) =&gt; binary(),
  optional(:phone) =&gt; binary(),
  optional(:tracking_number) =&gt; binary()
}
```

Shipping information for this PaymentIntent.

# `sofort`

```elixir
@type sofort() :: %{
  optional(:preferred_language) =&gt; :de | :en | :es | :fr | :it | :nl | :pl,
  optional(:setup_future_usage) =&gt; :none | :off_session
}
```

# `subscriptions`

```elixir
@type subscriptions() :: %{
  optional(:interval) =&gt; :day | :month | :week | :year,
  optional(:interval_count) =&gt; integer(),
  optional(:name) =&gt; binary(),
  optional(:next_billing) =&gt; next_billing(),
  optional(:reference) =&gt; binary()
}
```

# `swish`

```elixir
@type swish() :: %{
  optional(:reference) =&gt; binary() | binary(),
  optional(:setup_future_usage) =&gt; :none
}
```

# `t`

```elixir
@type t() :: %Stripe.PaymentIntent{
  amount: integer(),
  amount_capturable: integer(),
  amount_details: term(),
  amount_received: integer(),
  application: (binary() | term()) | nil,
  application_fee_amount: integer() | nil,
  automatic_payment_methods: term() | nil,
  canceled_at: integer() | nil,
  cancellation_reason: binary() | nil,
  capture_method: binary(),
  client_secret: binary() | nil,
  confirmation_method: binary(),
  created: integer(),
  currency: binary(),
  customer: (binary() | Stripe.Customer.t() | Stripe.DeletedCustomer.t()) | nil,
  description: binary() | nil,
  excluded_payment_method_types: term() | nil,
  hooks: term(),
  id: binary(),
  last_payment_error: Stripe.ApiErrors.t() | nil,
  latest_charge: (binary() | Stripe.Charge.t()) | nil,
  livemode: boolean(),
  metadata: term(),
  next_action: term() | nil,
  object: binary(),
  on_behalf_of: (binary() | Stripe.Account.t()) | nil,
  payment_details: term(),
  payment_method: (binary() | Stripe.PaymentMethod.t()) | nil,
  payment_method_configuration_details: term() | nil,
  payment_method_options: term() | nil,
  payment_method_types: term(),
  presentment_details: term(),
  processing: term() | nil,
  receipt_email: binary() | nil,
  review: (binary() | Stripe.Review.t()) | nil,
  setup_future_usage: binary() | nil,
  shipping: term() | nil,
  source:
    (binary() | Stripe.PaymentSource.t() | Stripe.DeletedPaymentSource.t())
    | nil,
  statement_descriptor: binary() | nil,
  statement_descriptor_suffix: binary() | nil,
  status: binary(),
  transfer_data: term() | nil,
  transfer_group: binary() | nil
}
```

The `payment_intent` type.

  * `amount` Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
  * `amount_capturable` Amount that can be captured from this PaymentIntent.
  * `amount_details` 
  * `amount_received` Amount that this PaymentIntent collects.
  * `application` ID of the Connect application that created the PaymentIntent.
  * `application_fee_amount` The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
  * `automatic_payment_methods` Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
  * `canceled_at` Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
  * `cancellation_reason` Reason for cancellation of this PaymentIntent, either user-provided (`duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`) or generated by Stripe internally (`failed_invoice`, `void_invoice`, `automatic`, or `expired`).
  * `capture_method` Controls when the funds will be captured from the customer's account.
  * `client_secret` The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key. 

The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.

Refer to our docs to [accept a payment](https://stripe.com/docs/payments/accept-a-payment?ui=elements) and learn about how `client_secret` should be handled.
  * `confirmation_method` Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment.
  * `created` Time at which the object was created. Measured in seconds since the Unix epoch.
  * `currency` Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
  * `customer` ID of the Customer this PaymentIntent belongs to, if one exists.

Payment methods attached to other Customers cannot be used with this PaymentIntent.

If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
  * `description` An arbitrary string attached to the object. Often useful for displaying to users.
  * `excluded_payment_method_types` The list of payment method types to exclude from use with this payment.
  * `hooks` 
  * `id` Unique identifier for the object.
  * `last_payment_error` The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
  * `latest_charge` ID of the latest [Charge object](https://stripe.com/docs/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
  * `livemode` Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
  * `metadata` Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Learn more about [storing information in metadata](https://stripe.com/docs/payments/payment-intents/creating-payment-intents#storing-information-in-metadata).
  * `next_action` If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
  * `object` String representing the object's type. Objects of the same type share the same value.
  * `on_behalf_of` The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details.
  * `payment_details` 
  * `payment_method` ID of the payment method used in this PaymentIntent.
  * `payment_method_configuration_details` Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent.
  * `payment_method_options` Payment-method-specific configuration for this PaymentIntent.
  * `payment_method_types` The list of payment method types (e.g. card) that this PaymentIntent is allowed to use. A comprehensive list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
  * `presentment_details` 
  * `processing` If present, this property tells you about the processing state of the payment.
  * `receipt_email` Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
  * `review` ID of the review associated with this PaymentIntent, if any.
  * `setup_future_usage` Indicates that you intend to make future payments with this PaymentIntent's payment method.

If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.

If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.

When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
  * `shipping` Shipping information for this PaymentIntent.
  * `source` This is a legacy field that will be removed in the future. It is the ID of the Source object that is associated with this PaymentIntent, if one was supplied.
  * `statement_descriptor` Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).

Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
  * `statement_descriptor_suffix` Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
  * `status` Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://stripe.com/docs/payments/intents#intent-statuses).
  * `transfer_data` The data that automatically creates a Transfer after the payment finalizes. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
  * `transfer_group` A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).

# `tax`

```elixir
@type tax() :: %{optional(:calculation) =&gt; binary() | binary()}
```

Tax arguments for automations

# `three_d_secure`

```elixir
@type three_d_secure() :: %{
  optional(:ares_trans_status) =&gt; :A | :C | :I | :N | :R | :U | :Y,
  optional(:cryptogram) =&gt; binary(),
  optional(:electronic_commerce_indicator) =&gt;
    :&quot;01&quot; | :&quot;02&quot; | :&quot;05&quot; | :&quot;06&quot; | :&quot;07&quot;,
  optional(:exemption_indicator) =&gt; :low_risk | :none,
  optional(:network_options) =&gt; network_options(),
  optional(:requestor_challenge_indicator) =&gt; binary(),
  optional(:transaction_id) =&gt; binary(),
  optional(:version) =&gt; :&quot;1.0.2&quot; | :&quot;2.1.0&quot; | :&quot;2.2.0&quot;
}
```

If 3D Secure authentication was performed with a third-party provider,
the authentication details to use for this payment.

# `transfer_data`

```elixir
@type transfer_data() :: %{
  optional(:amount) =&gt; integer(),
  optional(:destination) =&gt; binary()
}
```

The parameters that you can use to automatically create a Transfer.
Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).

# `twint`

```elixir
@type twint() :: %{optional(:setup_future_usage) =&gt; :none}
```

# `us_bank_account`

```elixir
@type us_bank_account() :: %{
  optional(:account_holder_type) =&gt; :company | :individual,
  optional(:account_number) =&gt; binary(),
  optional(:account_type) =&gt; :checking | :savings,
  optional(:financial_connections_account) =&gt; binary(),
  optional(:routing_number) =&gt; binary()
}
```

If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.

# `wechat_pay`

```elixir
@type wechat_pay() :: %{
  optional(:app_id) =&gt; binary(),
  optional(:client) =&gt; :android | :ios | :web,
  optional(:setup_future_usage) =&gt; :none
}
```

# `zip`

```elixir
@type zip() :: %{optional(:setup_future_usage) =&gt; :none}
```

# `apply_customer_balance`

```elixir
@spec apply_customer_balance(
  intent :: binary(),
  params :: %{
    optional(:amount) =&gt; integer(),
    optional(:currency) =&gt; binary(),
    optional(:expand) =&gt; [binary()]
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Manually reconcile the remaining amount for a <code>customer_balance</code> PaymentIntent.</p>

#### Details

 * Method: `post`
 * Path: `/v1/payment_intents/{intent}/apply_customer_balance`

# `cancel`

```elixir
@spec cancel(
  intent :: binary(),
  params :: %{
    optional(:cancellation_reason) =&gt;
      :abandoned | :duplicate | :fraudulent | :requested_by_customer,
    optional(:expand) =&gt; [binary()]
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>You can cancel a PaymentIntent object when it’s in one of these statuses: <code>requires_payment_method</code>, <code>requires_capture</code>, <code>requires_confirmation</code>, <code>requires_action</code> or, <a href="/docs/payments/intents">in rare cases</a>, <code>processing</code>. </p>

<p>After it’s canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a <code>status</code> of <code>requires_capture</code>, the remaining <code>amount_capturable</code> is automatically refunded. </p>

<p>You can’t cancel the PaymentIntent for a Checkout Session. <a href="/docs/api/checkout/sessions/expire">Expire the Checkout Session</a> instead.</p>

#### Details

 * Method: `post`
 * Path: `/v1/payment_intents/{intent}/cancel`

# `capture`

```elixir
@spec capture(
  intent :: binary(),
  params :: %{
    optional(:amount_details) =&gt; amount_details(),
    optional(:amount_to_capture) =&gt; integer(),
    optional(:application_fee_amount) =&gt; integer(),
    optional(:expand) =&gt; [binary()],
    optional(:final_capture) =&gt; boolean(),
    optional(:hooks) =&gt; hooks(),
    optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()} | binary(),
    optional(:payment_details) =&gt; payment_details() | binary(),
    optional(:statement_descriptor) =&gt; binary(),
    optional(:statement_descriptor_suffix) =&gt; binary(),
    optional(:transfer_data) =&gt; transfer_data()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Capture the funds of an existing uncaptured PaymentIntent when its status is <code>requires_capture</code>.</p>

<p>Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.</p>

<p>Learn more about <a href="/docs/payments/capture-later">separate authorization and capture</a>.</p>

#### Details

 * Method: `post`
 * Path: `/v1/payment_intents/{intent}/capture`

# `confirm`

```elixir
@spec confirm(
  intent :: binary(),
  params :: %{
    optional(:amount_details) =&gt; amount_details() | binary(),
    optional(:capture_method) =&gt; :automatic | :automatic_async | :manual,
    optional(:confirmation_token) =&gt; binary(),
    optional(:error_on_requires_action) =&gt; boolean(),
    optional(:excluded_payment_method_types) =&gt;
      [
        :acss_debit
        | :affirm
        | :afterpay_clearpay
        | :alipay
        | :alma
        | :amazon_pay
        | :au_becs_debit
        | :bacs_debit
        | :bancontact
        | :billie
        | :blik
        | :boleto
        | :card
        | :cashapp
        | :crypto
        | :customer_balance
        | :eps
        | :fpx
        | :giropay
        | :grabpay
        | :ideal
        | :kakao_pay
        | :klarna
        | :konbini
        | :kr_card
        | :mb_way
        | :mobilepay
        | :multibanco
        | :naver_pay
        | :nz_bank_account
        | :oxxo
        | :p24
        | :pay_by_bank
        | :payco
        | :paynow
        | :paypal
        | :pix
        | :promptpay
        | :revolut_pay
        | :samsung_pay
        | :satispay
        | :sepa_debit
        | :sofort
        | :swish
        | :twint
        | :us_bank_account
        | :wechat_pay
        | :zip
      ]
      | binary(),
    optional(:expand) =&gt; [binary()],
    optional(:hooks) =&gt; hooks(),
    optional(:mandate) =&gt; binary(),
    optional(:mandate_data) =&gt; mandate_data() | binary() | mandate_data(),
    optional(:off_session) =&gt; boolean() | :one_off | :recurring,
    optional(:payment_details) =&gt; payment_details() | binary(),
    optional(:payment_method) =&gt; binary(),
    optional(:payment_method_data) =&gt; payment_method_data(),
    optional(:payment_method_options) =&gt; payment_method_options(),
    optional(:payment_method_types) =&gt; [binary()],
    optional(:radar_options) =&gt; radar_options(),
    optional(:receipt_email) =&gt; binary() | binary(),
    optional(:return_url) =&gt; binary(),
    optional(:setup_future_usage) =&gt; :off_session | :on_session,
    optional(:shipping) =&gt; shipping() | binary(),
    optional(:use_stripe_sdk) =&gt; boolean()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Confirm that your customer intends to pay with current or provided
payment method. Upon confirmation, the PaymentIntent will attempt to initiate
a payment.</p>

<p>If the selected payment method requires additional authentication steps, the
PaymentIntent will transition to the <code>requires_action</code> status and
suggest additional actions via <code>next_action</code>. If payment fails,
the PaymentIntent transitions to the <code>requires_payment_method</code> status or the
<code>canceled</code> status if the confirmation limit is reached. If
payment succeeds, the PaymentIntent will transition to the <code>succeeded</code>
status (or <code>requires_capture</code>, if <code>capture_method</code> is set to <code>manual</code>).</p>

<p>If the <code>confirmation_method</code> is <code>automatic</code>, payment may be attempted
using our <a href="/docs/stripe-js/reference#stripe-handle-card-payment">client SDKs</a>
and the PaymentIntent’s <a href="#payment_intent_object-client_secret">client_secret</a>.
After <code>next_action</code>s are handled by the client, no additional
confirmation is required to complete the payment.</p>

<p>If the <code>confirmation_method</code> is <code>manual</code>, all payment attempts must be
initiated using a secret key.</p>

<p>If any actions are required for the payment, the PaymentIntent will
return to the <code>requires_confirmation</code> state
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.</p>

<p>There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the <code>canceled</code> state.</p>

#### Details

 * Method: `post`
 * Path: `/v1/payment_intents/{intent}/confirm`

# `create`

```elixir
@spec create(
  params :: %{
    optional(:confirmation_method) =&gt; :automatic | :manual,
    optional(:mandate) =&gt; binary(),
    optional(:setup_future_usage) =&gt; :off_session | :on_session,
    optional(:excluded_payment_method_types) =&gt; [
      :acss_debit
      | :affirm
      | :afterpay_clearpay
      | :alipay
      | :alma
      | :amazon_pay
      | :au_becs_debit
      | :bacs_debit
      | :bancontact
      | :billie
      | :blik
      | :boleto
      | :card
      | :cashapp
      | :crypto
      | :customer_balance
      | :eps
      | :fpx
      | :giropay
      | :grabpay
      | :ideal
      | :kakao_pay
      | :klarna
      | :konbini
      | :kr_card
      | :mb_way
      | :mobilepay
      | :multibanco
      | :naver_pay
      | :nz_bank_account
      | :oxxo
      | :p24
      | :pay_by_bank
      | :payco
      | :paynow
      | :paypal
      | :pix
      | :promptpay
      | :revolut_pay
      | :samsung_pay
      | :satispay
      | :sepa_debit
      | :sofort
      | :swish
      | :twint
      | :us_bank_account
      | :wechat_pay
      | :zip
    ],
    optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()},
    optional(:amount) =&gt; integer(),
    optional(:use_stripe_sdk) =&gt; boolean(),
    optional(:payment_method_configuration) =&gt; binary(),
    optional(:confirmation_token) =&gt; binary(),
    optional(:transfer_group) =&gt; binary(),
    optional(:error_on_requires_action) =&gt; boolean(),
    optional(:automatic_payment_methods) =&gt; automatic_payment_methods(),
    optional(:payment_method_types) =&gt; [binary()],
    optional(:on_behalf_of) =&gt; binary(),
    optional(:currency) =&gt; binary(),
    optional(:payment_method_options) =&gt; payment_method_options(),
    optional(:application_fee_amount) =&gt; integer(),
    optional(:description) =&gt; binary(),
    optional(:statement_descriptor_suffix) =&gt; binary(),
    optional(:transfer_data) =&gt; transfer_data(),
    optional(:confirm) =&gt; boolean(),
    optional(:return_url) =&gt; binary(),
    optional(:payment_method) =&gt; binary(),
    optional(:payment_details) =&gt; payment_details(),
    optional(:amount_details) =&gt; amount_details(),
    optional(:receipt_email) =&gt; binary(),
    optional(:capture_method) =&gt; :automatic | :automatic_async | :manual,
    optional(:mandate_data) =&gt; mandate_data() | binary(),
    optional(:statement_descriptor) =&gt; binary(),
    optional(:customer) =&gt; binary(),
    optional(:expand) =&gt; [binary()],
    optional(:payment_method_data) =&gt; payment_method_data(),
    optional(:shipping) =&gt; shipping(),
    optional(:radar_options) =&gt; radar_options(),
    optional(:off_session) =&gt; boolean() | :one_off | :recurring,
    optional(:hooks) =&gt; hooks()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Creates a PaymentIntent object.</p>

<p>After the PaymentIntent is created, attach a payment method and <a href="/docs/api/payment_intents/confirm">confirm</a>
to continue the payment. Learn more about <a href="/docs/payments/payment-intents">the available payment flows
with the Payment Intents API</a>.</p>

<p>When you use <code>confirm=true</code> during creation, it’s equivalent to creating
and confirming the PaymentIntent in the same call. You can use any parameters
available in the <a href="/docs/api/payment_intents/confirm">confirm API</a> when you supply
<code>confirm=true</code>.</p>

#### Details

 * Method: `post`
 * Path: `/v1/payment_intents`

# `increment_authorization`

```elixir
@spec increment_authorization(
  intent :: binary(),
  params :: %{
    optional(:amount) =&gt; integer(),
    optional(:amount_details) =&gt; amount_details(),
    optional(:application_fee_amount) =&gt; integer(),
    optional(:description) =&gt; binary(),
    optional(:expand) =&gt; [binary()],
    optional(:hooks) =&gt; hooks(),
    optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()},
    optional(:payment_details) =&gt; payment_details(),
    optional(:statement_descriptor) =&gt; binary(),
    optional(:transfer_data) =&gt; transfer_data()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Perform an incremental authorization on an eligible
<a href="/docs/api/payment_intents/object">PaymentIntent</a>. To be eligible, the
PaymentIntent’s status must be <code>requires_capture</code> and
<a href="/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported">incremental_authorization_supported</a>
must be <code>true</code>.</p>

<p>Incremental authorizations attempt to increase the authorized amount on
your customer’s card to the new, higher <code>amount</code> provided. Similar to the
initial authorization, incremental authorizations can be declined. A
single PaymentIntent can call this endpoint multiple times to further
increase the authorized amount.</p>

<p>If the incremental authorization succeeds, the PaymentIntent object
returns with the updated
<a href="/docs/api/payment_intents/object#payment_intent_object-amount">amount</a>.
If the incremental authorization fails, a
<a href="/docs/error-codes#card-declined">card_declined</a> error returns, and no other
fields on the PaymentIntent or Charge update. The PaymentIntent
object remains capturable for the previously authorized amount.</p>

<p>Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
After it’s captured, a PaymentIntent can no longer be incremented.</p>

<p>Learn more about <a href="/docs/terminal/features/incremental-authorizations">incremental authorizations</a>.</p>

#### Details

 * Method: `post`
 * Path: `/v1/payment_intents/{intent}/increment_authorization`

# `list`

```elixir
@spec list(
  params :: %{
    optional(:created) =&gt; created() | integer(),
    optional(:customer) =&gt; binary(),
    optional(:ending_before) =&gt; binary(),
    optional(:expand) =&gt; [binary()],
    optional(:limit) =&gt; integer(),
    optional(:starting_after) =&gt; binary()
  },
  opts :: Keyword.t()
) ::
  {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Returns a list of PaymentIntents.</p>

#### Details

 * Method: `get`
 * Path: `/v1/payment_intents`

# `retrieve`

```elixir
@spec retrieve(
  intent :: binary(),
  params :: %{
    optional(:client_secret) =&gt; binary(),
    optional(:expand) =&gt; [binary()]
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Retrieves the details of a PaymentIntent that has previously been created. </p>

<p>You can retrieve a PaymentIntent client-side using a publishable key when the <code>client_secret</code> is in the query string. </p>

<p>If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the <a href="#payment_intent_object">payment intent</a> object reference for more details.</p>

#### Details

 * Method: `get`
 * Path: `/v1/payment_intents/{intent}`

# `search`

```elixir
@spec search(
  params :: %{
    optional(:expand) =&gt; [binary()],
    optional(:limit) =&gt; integer(),
    optional(:page) =&gt; binary(),
    optional(:query) =&gt; binary()
  },
  opts :: Keyword.t()
) ::
  {:ok, Stripe.SearchResult.t(t())}
  | {:error, Stripe.ApiErrors.t()}
  | {:error, term()}
```

<p>Search for PaymentIntents you’ve previously created using Stripe’s <a href="/docs/search#search-query-language">Search Query Language</a>.
Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating
conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
to an hour behind during outages. Search functionality is not available to merchants in India.</p>

#### Details

 * Method: `get`
 * Path: `/v1/payment_intents/search`

# `update`

```elixir
@spec update(
  intent :: binary(),
  params :: %{
    optional(:amount) =&gt; integer(),
    optional(:amount_details) =&gt; amount_details() | binary(),
    optional(:application_fee_amount) =&gt; integer() | binary(),
    optional(:capture_method) =&gt; :automatic | :automatic_async | :manual,
    optional(:currency) =&gt; binary(),
    optional(:customer) =&gt; binary(),
    optional(:description) =&gt; binary(),
    optional(:excluded_payment_method_types) =&gt;
      [
        :acss_debit
        | :affirm
        | :afterpay_clearpay
        | :alipay
        | :alma
        | :amazon_pay
        | :au_becs_debit
        | :bacs_debit
        | :bancontact
        | :billie
        | :blik
        | :boleto
        | :card
        | :cashapp
        | :crypto
        | :customer_balance
        | :eps
        | :fpx
        | :giropay
        | :grabpay
        | :ideal
        | :kakao_pay
        | :klarna
        | :konbini
        | :kr_card
        | :mb_way
        | :mobilepay
        | :multibanco
        | :naver_pay
        | :nz_bank_account
        | :oxxo
        | :p24
        | :pay_by_bank
        | :payco
        | :paynow
        | :paypal
        | :pix
        | :promptpay
        | :revolut_pay
        | :samsung_pay
        | :satispay
        | :sepa_debit
        | :sofort
        | :swish
        | :twint
        | :us_bank_account
        | :wechat_pay
        | :zip
      ]
      | binary(),
    optional(:expand) =&gt; [binary()],
    optional(:hooks) =&gt; hooks(),
    optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()} | binary(),
    optional(:payment_details) =&gt; payment_details() | binary(),
    optional(:payment_method) =&gt; binary(),
    optional(:payment_method_configuration) =&gt; binary(),
    optional(:payment_method_data) =&gt; payment_method_data(),
    optional(:payment_method_options) =&gt; payment_method_options(),
    optional(:payment_method_types) =&gt; [binary()],
    optional(:receipt_email) =&gt; binary() | binary(),
    optional(:setup_future_usage) =&gt; :off_session | :on_session,
    optional(:shipping) =&gt; shipping() | binary(),
    optional(:statement_descriptor) =&gt; binary(),
    optional(:statement_descriptor_suffix) =&gt; binary(),
    optional(:transfer_data) =&gt; transfer_data(),
    optional(:transfer_group) =&gt; binary()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Updates properties on a PaymentIntent object without confirming.</p>

<p>Depending on which properties you update, you might need to confirm the
PaymentIntent again. For example, updating the <code>payment_method</code>
always requires you to confirm the PaymentIntent again. If you prefer to
update and confirm at the same time, we recommend updating properties through
the <a href="/docs/api/payment_intents/confirm">confirm API</a> instead.</p>

#### Details

 * Method: `post`
 * Path: `/v1/payment_intents/{intent}`

# `verify_microdeposits`

```elixir
@spec verify_microdeposits(
  intent :: binary(),
  params :: %{
    optional(:amounts) =&gt; [integer()],
    optional(:descriptor_code) =&gt; binary(),
    optional(:expand) =&gt; [binary()]
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Verifies microdeposits on a PaymentIntent object.</p>

#### Details

 * Method: `post`
 * Path: `/v1/payment_intents/{intent}/verify_microdeposits`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
