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

A payment link is a shareable URL that will take your customers to a hosted payment page. A payment link can be shared and used multiple times.

When a customer opens a payment link it will open a new [checkout session](https://stripe.com/docs/api/checkout/sessions) to render the payment page. You can use [checkout session events](https://stripe.com/docs/api/events/types#event_types-checkout.session.completed) to track payments through payment links.

Related guide: [Payment Links API](https://stripe.com/docs/payment-links)

# `adjustable_quantity`

```elixir
@type adjustable_quantity() :: %{
  optional(:enabled) =&gt; boolean(),
  optional(:maximum) =&gt; integer(),
  optional(:minimum) =&gt; integer()
}
```

When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.

# `after_completion`

```elixir
@type after_completion() :: %{
  optional(:hosted_confirmation) =&gt; hosted_confirmation(),
  optional(:redirect) =&gt; redirect(),
  optional(:type) =&gt; :hosted_confirmation | :redirect
}
```

Behavior after the purchase is complete.

# `after_submit`

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

# `automatic_tax`

```elixir
@type automatic_tax() :: %{
  optional(:enabled) =&gt; boolean(),
  optional(:liability) =&gt; liability()
}
```

Configuration for automatic tax collection.

# `business`

```elixir
@type business() :: %{
  optional(:enabled) =&gt; boolean(),
  optional(:optional) =&gt; boolean()
}
```

Controls settings applied for collecting the customer's business name.

# `completed_sessions`

```elixir
@type completed_sessions() :: %{optional(:limit) =&gt; integer()}
```

Configuration for the `completed_sessions` restriction type.

# `consent_collection`

```elixir
@type consent_collection() :: %{
  optional(:payment_method_reuse_agreement) =&gt; payment_method_reuse_agreement(),
  optional(:promotions) =&gt; :auto | :none,
  optional(:terms_of_service) =&gt; :none | :required
}
```

Configure fields to gather active consent from customers.

# `custom_fields`

```elixir
@type custom_fields() :: %{
  optional(:dropdown) =&gt; dropdown(),
  optional(:key) =&gt; binary(),
  optional(:label) =&gt; label(),
  optional(:numeric) =&gt; numeric(),
  optional(:optional) =&gt; boolean(),
  optional(:text) =&gt; text(),
  optional(:type) =&gt; :dropdown | :numeric | :text
}
```

# `custom_text`

```elixir
@type custom_text() :: %{
  optional(:after_submit) =&gt; after_submit() | binary(),
  optional(:shipping_address) =&gt; shipping_address() | binary(),
  optional(:submit) =&gt; submit() | binary(),
  optional(:terms_of_service_acceptance) =&gt;
    terms_of_service_acceptance() | binary()
}
```

Display additional text for your customers using custom text.

# `dropdown`

```elixir
@type dropdown() :: %{
  optional(:default_value) =&gt; binary(),
  optional(:options) =&gt; [options()]
}
```

Configuration for `type=dropdown` fields.

# `end_behavior`

```elixir
@type end_behavior() :: %{
  optional(:missing_payment_method) =&gt; :cancel | :create_invoice | :pause
}
```

Defines how the subscription should behave when the user's free trial ends.

# `hosted_confirmation`

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

Configuration when `type=hosted_confirmation`.

# `individual`

```elixir
@type individual() :: %{
  optional(:enabled) =&gt; boolean(),
  optional(:optional) =&gt; boolean()
}
```

Controls settings applied for collecting the customer's individual name.

# `invoice_creation`

```elixir
@type invoice_creation() :: %{
  optional(:enabled) =&gt; boolean(),
  optional(:invoice_data) =&gt; invoice_data()
}
```

Generate a post-purchase Invoice for one-time payments.

# `invoice_data`

```elixir
@type invoice_data() :: %{
  optional(:account_tax_ids) =&gt; [binary()] | binary(),
  optional(:custom_fields) =&gt; [custom_fields()] | binary(),
  optional(:description) =&gt; binary(),
  optional(:footer) =&gt; binary(),
  optional(:issuer) =&gt; issuer(),
  optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()} | binary(),
  optional(:rendering_options) =&gt; rendering_options() | binary()
}
```

Invoice PDF configuration.

# `invoice_settings`

```elixir
@type invoice_settings() :: %{optional(:issuer) =&gt; issuer()}
```

All invoices will be billed using the specified settings.

# `issuer`

```elixir
@type issuer() :: %{
  optional(:account) =&gt; binary(),
  optional(:type) =&gt; :account | :self
}
```

The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.

# `label`

```elixir
@type label() :: %{optional(:custom) =&gt; binary(), optional(:type) =&gt; :custom}
```

The label for the field, displayed to the customer.

# `liability`

```elixir
@type liability() :: %{
  optional(:account) =&gt; binary(),
  optional(:type) =&gt; :account | :self
}
```

The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.

# `line_items`

```elixir
@type line_items() :: %{
  optional(:adjustable_quantity) =&gt; adjustable_quantity(),
  optional(:price) =&gt; binary(),
  optional(:price_data) =&gt; price_data(),
  optional(:quantity) =&gt; integer()
}
```

# `name_collection`

```elixir
@type name_collection() :: %{
  optional(:business) =&gt; business(),
  optional(:individual) =&gt; individual()
}
```

Controls settings applied for collecting the customer's name.

# `numeric`

```elixir
@type numeric() :: %{
  optional(:default_value) =&gt; binary(),
  optional(:maximum_length) =&gt; integer(),
  optional(:minimum_length) =&gt; integer()
}
```

Configuration for `type=numeric` fields.

# `optional_items`

```elixir
@type optional_items() :: %{
  optional(:adjustable_quantity) =&gt; adjustable_quantity(),
  optional(:price) =&gt; binary(),
  optional(:quantity) =&gt; integer()
}
```

# `options`

```elixir
@type options() :: %{optional(:label) =&gt; binary(), optional(:value) =&gt; binary()}
```

# `payment_intent_data`

```elixir
@type payment_intent_data() :: %{
  optional(:capture_method) =&gt; :automatic | :automatic_async | :manual,
  optional(:description) =&gt; binary(),
  optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()},
  optional(:setup_future_usage) =&gt; :off_session | :on_session,
  optional(:statement_descriptor) =&gt; binary(),
  optional(:statement_descriptor_suffix) =&gt; binary(),
  optional(:transfer_group) =&gt; binary()
}
```

A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.

# `payment_method_reuse_agreement`

```elixir
@type payment_method_reuse_agreement() :: %{optional(:position) =&gt; :auto | :hidden}
```

Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.

# `phone_number_collection`

```elixir
@type phone_number_collection() :: %{optional(:enabled) =&gt; boolean()}
```

Controls phone number collection settings during checkout.

We recommend that you review your privacy policy and check with your legal contacts.

# `price_data`

```elixir
@type price_data() :: %{
  optional(:currency) =&gt; binary(),
  optional(:product) =&gt; binary(),
  optional(:product_data) =&gt; product_data(),
  optional(:recurring) =&gt; recurring(),
  optional(:tax_behavior) =&gt; :exclusive | :inclusive | :unspecified,
  optional(:unit_amount) =&gt; integer(),
  optional(:unit_amount_decimal) =&gt; binary()
}
```

Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.

# `product_data`

```elixir
@type product_data() :: %{
  optional(:description) =&gt; binary(),
  optional(:images) =&gt; [binary()],
  optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()},
  optional(:name) =&gt; binary(),
  optional(:tax_code) =&gt; binary(),
  optional(:unit_label) =&gt; binary()
}
```

Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.

# `recurring`

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

The recurring components of a price such as `interval` and `interval_count`.

# `redirect`

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

Configuration when `type=redirect`.

# `rendering_options`

```elixir
@type rendering_options() :: %{
  optional(:amount_tax_display) =&gt; :exclude_tax | :include_inclusive_tax,
  optional(:template) =&gt; binary()
}
```

# `restrictions`

```elixir
@type restrictions() :: %{optional(:completed_sessions) =&gt; completed_sessions()}
```

Settings that restrict the usage of a payment link.

# `shipping_address`

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

# `shipping_address_collection`

```elixir
@type shipping_address_collection() :: %{
  optional(:allowed_countries) =&gt; [
    :AC
    | :AD
    | :AE
    | :AF
    | :AG
    | :AI
    | :AL
    | :AM
    | :AO
    | :AQ
    | :AR
    | :AT
    | :AU
    | :AW
    | :AX
    | :AZ
    | :BA
    | :BB
    | :BD
    | :BE
    | :BF
    | :BG
    | :BH
    | :BI
    | :BJ
    | :BL
    | :BM
    | :BN
    | :BO
    | :BQ
    | :BR
    | :BS
    | :BT
    | :BV
    | :BW
    | :BY
    | :BZ
    | :CA
    | :CD
    | :CF
    | :CG
    | :CH
    | :CI
    | :CK
    | :CL
    | :CM
    | :CN
    | :CO
    | :CR
    | :CV
    | :CW
    | :CY
    | :CZ
    | :DE
    | :DJ
    | :DK
    | :DM
    | :DO
    | :DZ
    | :EC
    | :EE
    | :EG
    | :EH
    | :ER
    | :ES
    | :ET
    | :FI
    | :FJ
    | :FK
    | :FO
    | :FR
    | :GA
    | :GB
    | :GD
    | :GE
    | :GF
    | :GG
    | :GH
    | :GI
    | :GL
    | :GM
    | :GN
    | :GP
    | :GQ
    | :GR
    | :GS
    | :GT
    | :GU
    | :GW
    | :GY
    | :HK
    | :HN
    | :HR
    | :HT
    | :HU
    | :ID
    | :IE
    | :IL
    | :IM
    | :IN
    | :IO
    | :IQ
    | :IS
    | :IT
    | :JE
    | :JM
    | :JO
    | :JP
    | :KE
    | :KG
    | :KH
    | :KI
    | :KM
    | :KN
    | :KR
    | :KW
    | :KY
    | :KZ
    | :LA
    | :LB
    | :LC
    | :LI
    | :LK
    | :LR
    | :LS
    | :LT
    | :LU
    | :LV
    | :LY
    | :MA
    | :MC
    | :MD
    | :ME
    | :MF
    | :MG
    | :MK
    | :ML
    | :MM
    | :MN
    | :MO
    | :MQ
    | :MR
    | :MS
    | :MT
    | :MU
    | :MV
    | :MW
    | :MX
    | :MY
    | :MZ
    | :NA
    | :NC
    | :NE
    | :NG
    | :NI
    | :NL
    | :NO
    | :NP
    | :NR
    | :NU
    | :NZ
    | :OM
    | :PA
    | :PE
    | :PF
    | :PG
    | :PH
    | :PK
    | :PL
    | :PM
    | :PN
    | :PR
    | :PS
    | :PT
    | :PY
    | :QA
    | :RE
    | :RO
    | :RS
    | :RU
    | :RW
    | :SA
    | :SB
    | :SC
    | :SD
    | :SE
    | :SG
    | :SH
    | :SI
    | :SJ
    | :SK
    | :SL
    | :SM
    | :SN
    | :SO
    | :SR
    | :SS
    | :ST
    | :SV
    | :SX
    | :SZ
    | :TA
    | :TC
    | :TD
    | :TF
    | :TG
    | :TH
    | :TJ
    | :TK
    | :TL
    | :TM
    | :TN
    | :TO
    | :TR
    | :TT
    | :TV
    | :TW
    | :TZ
    | :UA
    | :UG
    | :US
    | :UY
    | :UZ
    | :VA
    | :VC
    | :VE
    | :VG
    | :VN
    | :VU
    | :WF
    | :WS
    | :XK
    | :YE
    | :YT
    | :ZA
    | :ZM
    | :ZW
    | :ZZ
  ]
}
```

Configuration for collecting the customer's shipping address.

# `shipping_options`

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

# `submit`

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

# `subscription_data`

```elixir
@type subscription_data() :: %{
  optional(:description) =&gt; binary(),
  optional(:invoice_settings) =&gt; invoice_settings(),
  optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()},
  optional(:trial_period_days) =&gt; integer(),
  optional(:trial_settings) =&gt; trial_settings()
}
```

When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.

# `t`

```elixir
@type t() :: %Stripe.PaymentLink{
  active: boolean(),
  after_completion: term(),
  allow_promotion_codes: boolean(),
  application: (binary() | term() | term()) | nil,
  application_fee_amount: integer() | nil,
  application_fee_percent: term() | nil,
  automatic_tax: term(),
  billing_address_collection: binary(),
  consent_collection: term() | nil,
  currency: binary(),
  custom_fields: term(),
  custom_text: term(),
  customer_creation: binary(),
  id: binary(),
  inactive_message: binary() | nil,
  invoice_creation: term() | nil,
  line_items: term(),
  livemode: boolean(),
  metadata: term(),
  name_collection: term(),
  object: binary(),
  on_behalf_of: (binary() | Stripe.Account.t()) | nil,
  optional_items: term() | nil,
  payment_intent_data: term() | nil,
  payment_method_collection: binary(),
  payment_method_types: term() | nil,
  phone_number_collection: term(),
  restrictions: term() | nil,
  shipping_address_collection: term() | nil,
  shipping_options: term(),
  submit_type: binary(),
  subscription_data: term() | nil,
  tax_id_collection: term(),
  transfer_data: term() | nil,
  url: binary()
}
```

The `payment_link` type.

  * `active` Whether the payment link's `url` is active. If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated.
  * `after_completion` 
  * `allow_promotion_codes` Whether user redeemable promotion codes are enabled.
  * `application` The ID of the Connect application that created the Payment Link.
  * `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.
  * `application_fee_percent` This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account.
  * `automatic_tax` 
  * `billing_address_collection` Configuration for collecting the customer's billing address. Defaults to `auto`.
  * `consent_collection` When set, provides configuration to gather active consent from customers.
  * `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).
  * `custom_fields` Collect additional information from your customer using custom fields. Up to 3 fields are supported.
  * `custom_text` 
  * `customer_creation` Configuration for Customer creation during checkout.
  * `id` Unique identifier for the object.
  * `inactive_message` The custom message to be displayed to a customer when a payment link is no longer active.
  * `invoice_creation` Configuration for creating invoice for payment mode payment links.
  * `line_items` The line items representing what is being sold.
  * `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.
  * `name_collection` 
  * `object` String representing the object's type. Objects of the same type share the same value.
  * `on_behalf_of` The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details.
  * `optional_items` The optional items presented to the customer at checkout.
  * `payment_intent_data` Indicates the parameters to be passed to PaymentIntent creation during checkout.
  * `payment_method_collection` Configuration for collecting a payment method during checkout. Defaults to `always`.
  * `payment_method_types` The list of payment method types that customers can use. When `null`, Stripe will dynamically show relevant payment methods you've enabled in your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
  * `phone_number_collection` 
  * `restrictions` Settings that restrict the usage of a payment link.
  * `shipping_address_collection` Configuration for collecting the customer's shipping address.
  * `shipping_options` The shipping rate options applied to the session.
  * `submit_type` Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button.
  * `subscription_data` When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.
  * `tax_id_collection` 
  * `transfer_data` The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
  * `url` The public URL that can be shared with customers.

# `tax_id_collection`

```elixir
@type tax_id_collection() :: %{
  optional(:enabled) =&gt; boolean(),
  optional(:required) =&gt; :if_supported | :never
}
```

Controls tax ID collection during checkout.

# `terms_of_service_acceptance`

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

# `text`

```elixir
@type text() :: %{
  optional(:default_value) =&gt; binary(),
  optional(:maximum_length) =&gt; integer(),
  optional(:minimum_length) =&gt; integer()
}
```

Configuration for `type=text` fields.

# `transfer_data`

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

The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.

# `trial_settings`

```elixir
@type trial_settings() :: %{optional(:end_behavior) =&gt; end_behavior()}
```

Settings related to subscription trials.

# `create`

```elixir
@spec create(
  params :: %{
    optional(:after_completion) =&gt; after_completion(),
    optional(:allow_promotion_codes) =&gt; boolean(),
    optional(:application_fee_amount) =&gt; integer(),
    optional(:application_fee_percent) =&gt; number(),
    optional(:automatic_tax) =&gt; automatic_tax(),
    optional(:billing_address_collection) =&gt; :auto | :required,
    optional(:consent_collection) =&gt; consent_collection(),
    optional(:currency) =&gt; binary(),
    optional(:custom_fields) =&gt; [custom_fields()],
    optional(:custom_text) =&gt; custom_text(),
    optional(:customer_creation) =&gt; :always | :if_required,
    optional(:expand) =&gt; [binary()],
    optional(:inactive_message) =&gt; binary(),
    optional(:invoice_creation) =&gt; invoice_creation(),
    optional(:line_items) =&gt; [line_items()],
    optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()},
    optional(:name_collection) =&gt; name_collection(),
    optional(:on_behalf_of) =&gt; binary(),
    optional(:optional_items) =&gt; [optional_items()],
    optional(:payment_intent_data) =&gt; payment_intent_data(),
    optional(:payment_method_collection) =&gt; :always | :if_required,
    optional(:payment_method_types) =&gt; [
      :affirm
      | :afterpay_clearpay
      | :alipay
      | :alma
      | :au_becs_debit
      | :bacs_debit
      | :bancontact
      | :billie
      | :blik
      | :boleto
      | :card
      | :cashapp
      | :eps
      | :fpx
      | :giropay
      | :grabpay
      | :ideal
      | :klarna
      | :konbini
      | :link
      | :mb_way
      | :mobilepay
      | :multibanco
      | :oxxo
      | :p24
      | :pay_by_bank
      | :paynow
      | :paypal
      | :pix
      | :promptpay
      | :satispay
      | :sepa_debit
      | :sofort
      | :swish
      | :twint
      | :us_bank_account
      | :wechat_pay
      | :zip
    ],
    optional(:phone_number_collection) =&gt; phone_number_collection(),
    optional(:restrictions) =&gt; restrictions(),
    optional(:shipping_address_collection) =&gt; shipping_address_collection(),
    optional(:shipping_options) =&gt; [shipping_options()],
    optional(:submit_type) =&gt; :auto | :book | :donate | :pay | :subscribe,
    optional(:subscription_data) =&gt; subscription_data(),
    optional(:tax_id_collection) =&gt; tax_id_collection(),
    optional(:transfer_data) =&gt; transfer_data()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Creates a payment link.</p>

#### Details

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

# `list`

```elixir
@spec list(
  params :: %{
    optional(:active) =&gt; boolean(),
    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 your payment links.</p>

#### Details

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

# `list_line_items`

```elixir
@spec list_line_items(
  payment_link :: binary(),
  params :: %{
    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(Stripe.Item.t())}
  | {:error, Stripe.ApiErrors.t()}
  | {:error, term()}
```

<p>When retrieving a payment link, there is an includable <strong>line_items</strong> property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.</p>

#### Details

 * Method: `get`
 * Path: `/v1/payment_links/{payment_link}/line_items`

# `retrieve`

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

<p>Retrieve a payment link.</p>

#### Details

 * Method: `get`
 * Path: `/v1/payment_links/{payment_link}`

# `update`

```elixir
@spec update(
  payment_link :: binary(),
  params :: %{
    optional(:active) =&gt; boolean(),
    optional(:after_completion) =&gt; after_completion(),
    optional(:allow_promotion_codes) =&gt; boolean(),
    optional(:automatic_tax) =&gt; automatic_tax(),
    optional(:billing_address_collection) =&gt; :auto | :required,
    optional(:custom_fields) =&gt; [custom_fields()] | binary(),
    optional(:custom_text) =&gt; custom_text(),
    optional(:customer_creation) =&gt; :always | :if_required,
    optional(:expand) =&gt; [binary()],
    optional(:inactive_message) =&gt; binary() | binary(),
    optional(:invoice_creation) =&gt; invoice_creation(),
    optional(:line_items) =&gt; [line_items()],
    optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()},
    optional(:name_collection) =&gt; name_collection() | binary(),
    optional(:payment_intent_data) =&gt; payment_intent_data(),
    optional(:payment_method_collection) =&gt; :always | :if_required,
    optional(:payment_method_types) =&gt;
      [
        :affirm
        | :afterpay_clearpay
        | :alipay
        | :alma
        | :au_becs_debit
        | :bacs_debit
        | :bancontact
        | :billie
        | :blik
        | :boleto
        | :card
        | :cashapp
        | :eps
        | :fpx
        | :giropay
        | :grabpay
        | :ideal
        | :klarna
        | :konbini
        | :link
        | :mb_way
        | :mobilepay
        | :multibanco
        | :oxxo
        | :p24
        | :pay_by_bank
        | :paynow
        | :paypal
        | :pix
        | :promptpay
        | :satispay
        | :sepa_debit
        | :sofort
        | :swish
        | :twint
        | :us_bank_account
        | :wechat_pay
        | :zip
      ]
      | binary(),
    optional(:phone_number_collection) =&gt; phone_number_collection(),
    optional(:restrictions) =&gt; restrictions() | binary(),
    optional(:shipping_address_collection) =&gt;
      shipping_address_collection() | binary(),
    optional(:submit_type) =&gt; :auto | :book | :donate | :pay | :subscribe,
    optional(:subscription_data) =&gt; subscription_data(),
    optional(:tax_id_collection) =&gt; tax_id_collection()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Updates a payment link.</p>

#### Details

 * Method: `post`
 * Path: `/v1/payment_links/{payment_link}`

---

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