> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

# The Payment Method Object

## Attributes

This object represents a payment method that can be associated with a customer for back-to-back payments.

<ParamField body="id" type="string">
  The unique identifier of the payment method (MAX 64; MIN 36).

  Example: 693ed90e-5aa9-11ed-9b6a-0242ac120002
</ParamField>

<ParamField body="name" type="string">
  The payment method name (MAX 255; MIN 3).

  Example: CARD
</ParamField>

<ParamField body="description" type="string">
  The payment method description (MAX 255; MIN 3).

  Example: CARD
</ParamField>

<ParamField body="type" type="enum">
  The payment method type (MAX 255; MIN 3).

  Possible enum values: Check the <a href="/reference/payment-type-list">
  Payment type list</a>.
</ParamField>

<ParamField body="category" type="enum">
  The payment method category (MAX 255; MIN 3).

  Example: CARD
</ParamField>

<ParamField body="country" type="enum">
  The customer's country (MAX 2; MIN 2; <a href="/reference/country-reference">ISO 3166-1</a> ).

  Possible enum values: Check the <a href="/reference/country-reference">Country reference</a>.
</ParamField>

<ParamField body="last_successfuly_used" type="bool">
  Indicates if the enrolled payment method was the last successfully used by the customer ).

  Example: True
</ParamField>

<ParamField body="last_successfuly_used_at" type="timestamp">
  Indicates the date of the last succeeded payment if the enrolled payment method was the last successfully
  used by the customer ).

  Example: "2023-01-24T12:50:43.938087Z"
</ParamField>

<ParamField body="workflow" type="enum">
  The payment workflow indicates whether the integration will use Yuno´s SDK or will be a back to back
  connection.

  Possible enum values: If `CHECKOUT` you will use Yuno SDK. If `DIRECT` you
  will back to back integration.
</ParamField>

<ParamField body="card_data" type="object">
  Specifies the details of the card.

  <Expandable title="properties">
    <ParamField body="iin" type="integer">
      The issuer indentificarion number (IIN) refers to the first few digits of the payment card number issued
      by a financial insituition (MAX 8; MIN 6).

      Example: 45079900
    </ParamField>

    <ParamField body="lfd" type="integer">
      The last four digits of the card (MAX 4; MIN 4).

      Example: 0010
    </ParamField>

    <ParamField body="expiration_month" type="integer">
      The expiraton month of the card (MAX 2; MIN 2) - only available for PCI certified merchants.

      Example: 12
    </ParamField>

    <ParamField body="expiration_year" type="integer">
      The expiraton year of the card (MAX 2; MIN 2) - only available for PCI certified merchants.

      Example: 12
    </ParamField>

    <ParamField body="number_length" type="integer">
      The length of the card's number (MAX 19; MIN 8).

      Example: 41961111
    </ParamField>

    <ParamField body="security_code_length" type="integer">
      The length of the card's security code (MAX 4; MIN 3).

      Example: 123
    </ParamField>

    <ParamField body="brand" type="string">
      The card's brand information (MAX 255; MIN 3).

      Example: VISA
    </ParamField>

    <ParamField body="issuer" type="string">
      The card's issuer (MAX 255; MIN 3).

      Example: Banco Galicia
    </ParamField>

    <ParamField body="category" type="string">
      The category of the card's issuer (MAX 255; MIN 3).

      Example: Gold
    </ParamField>

    <ParamField body="type" type="string">
      The type of the card's issuer (MAX 255; MIN 3).

      Example: CREDIT, DEBIT, or PREPAID
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="callback_url" type="string">
  URL to return the customer after an enrollment in a provider´s environment. Only necessary for alternative
  payment methods integrations (MAX: 64; MIN: 36).

  Example: [https://www.company.com/customer\_1231324](https://www.company.com/customer_1231324)
</ParamField>

<ParamField body="verify" type="object">
  Indicates whether to verify the payment with a verify transaction or not. You’ll need to have a provider
  defined in your CARD route.

  <Expandable title="properties">
    <ParamField body="vault_on_success" type="boolean">
      Indicates whether to verify the payment with a verify transaction or not. False by default.
    </ParamField>

    <ParamField body="currency" type="enum">
      Currency of the card verification.(MAX 3; MIN 3; <a href="/reference/country-reference">ISO 4217</a> ).

      Possible enum values: Check the <a href="/reference/country-reference">Country reference</a>.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="status" type="enum">
  The status of the payment method (MAX 255; MIN 5).

  Possible enum values: Check the <a href="/reference/customer-sessions-enrollment/enrollment-workflow#payment-method-status">Payment method
  status</a>.
</ParamField>

<ParamField body="vaulted_token" type="string">
  The vaulted token for the previously enrolled payment method (MAX 64; MIN 36).

  Example: 321c12f6-42c2-45b7-bf0c-f2f767b31948
</ParamField>

<ParamField body="created_at" type="timestamp">
  Payment method creation date and time (MAX 27; MIN 27; <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO
  8601</a> ).

  Example: 2022-05-09T20:46:54.786342Z
</ParamField>

<ParamField body="updated_at" type="timestamp">
  Last payment method update date and time (MAX 27; MIN 27; <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a> ).

  Example: 2022-05-09T20:46:54.786342Z
</ParamField>
