Skip to Content

CartPaymentMethod

Describes a cart payment method, including type, status, fees, and additional information.

Type Definition

type CartPaymentMethod { type: String title: String status: String isPaid: Boolean currency: Currency info: String description: String fee: Float netFee: Float tax: Float paidAmount: Float rate: Float ratePercentage: Float giftCard: GiftCard metafields: [Metafield]! metafield: Metafield }

Fields

FieldTypeDescription
typeStringReturns the type.
titleStringReturns the title.
statusStringReturns the status.
isPaidBooleanReturns true if this payment method status is paid.
currencyCurrencyReturns payment method currency.
infoStringReturns additional information about the payment method.
descriptionStringReturns payment method description.
feeFloatReturns the payment fee in customer’s currency.
netFeeFloatReturns the payment fee without tax in customer’s currency.
taxFloatReturns the tax amount in customer’s currency.
paidAmountFloatReturns the paid amount in customer’s currency.
rateFloatReturns the tax rate in decimals.
ratePercentageFloatReturns the tax rate.
giftCardGiftCardIf this payment method type is gift_card this returns a GiftCard object with information about the gift card used as a payment method.
metafields[Metafield]!Metafields stored on this resource.
metafieldMetafieldA single metafield by namespace and key.

Relationships

CartPaymentMethod represents payment information within a cart context. It contains a reference to a Currency object that specifies the payment currency, and optionally references a GiftCard object if the payment method is a gift card. The type also includes metafield support for storing custom data associated with the payment method.

Example

{ type title status isPaid currency { code } fee netFee tax paidAmount ratePercentage giftCard { id balance } metafields(first: 10) { edges { node { namespace key value } } } }

Implements

No interfaces are implemented by this type.