# `PolarExpress.Schemas.CardPayment`
[🔗](https://github.com/jeffhuen/polar_express/blob/main/lib/polar_express/schemas/card_payment.ex#L2)

CardPayment

Schema of a payment with a card payment method.

# `t`

```elixir
@type t() :: %PolarExpress.Schemas.CardPayment{
  amount: integer() | nil,
  checkout_id: String.t() | nil,
  created_at: DateTime.t() | nil,
  currency: String.t() | nil,
  decline_message: String.t() | nil,
  decline_reason: String.t() | nil,
  id: String.t() | nil,
  method: String.t() | nil,
  method_metadata: PolarExpress.Schemas.CardPaymentMetadata.t() | nil,
  modified_at: DateTime.t() | nil,
  order_id: String.t() | nil,
  organization_id: String.t() | nil,
  processor: PolarExpress.Schemas.PaymentProcessor.t() | nil,
  processor_metadata: map() | nil,
  status: PolarExpress.Schemas.PaymentStatus.t() | nil
}
```

* `amount` - The payment amount in cents.
* `checkout_id` - The ID of the checkout session associated with this payment. Nullable.
* `created_at` - Creation timestamp of the object. Format: date-time.
* `currency` - The payment currency. Currently, only `usd` is supported.
* `decline_message` - Human-reasable error message, if the payment was declined. Nullable.
* `decline_reason` - Error code, if the payment was declined. Nullable.
* `id` - The ID of the object. Format: uuid4.
* `method` - The payment method used.
* `method_metadata` - Additional metadata for the card payment method.
* `modified_at` - Last modification timestamp of the object. Nullable.
* `order_id` - The ID of the order associated with this payment. Nullable.
* `organization_id` - The ID of the organization that owns the payment. Format: uuid4.
* `processor` - The payment processor.
* `processor_metadata` - Additional metadata from the payment processor for internal use.
* `status` - The payment status.

# `schema_name`

---

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