struct

Polar::Models::CardPayment

Inherits JSON::Serializable < Struct < Value < Object

Model representing a CardPayment

This struct is auto-generated from the Polar.sh OpenAPI specification. It uses JSON::Serializable for automatic JSON parsing and serialization.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

amount

The payment amount in cents.

Source
checkout_id

The ID of the checkout session associated with this payment.

Source
created_at

Creation timestamp of the object.

Source
currency

The payment currency. Currently, only usd is supported.

Source
decline_message

Human-reasable error message, if the payment was declined.

Source
decline_reason

Error code, if the payment was declined.

Source
id

The ID of the object.

Source
method

The payment method used.

Source
method_metadata

Additional metadata for the card payment method.

Source
modified_at

Last modification timestamp of the object.

Source
order_id

The ID of the order associated with this payment.

Source
organization_id

The ID of the organization that owns the payment.

Source
processor

The payment processor.

Source
processor_metadata

Additional metadata from the payment processor for internal use.

Source
status

The payment status.

Source