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 }

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.

Relationships

CartPaymentMethod represents a payment method associated with a cart. It contains a reference to a Currency object that specifies the currency in which fees and amounts are calculated. When the payment method type is gift_card, it includes a GiftCard object containing details about the gift card used for payment.

Example

{ type title status isPaid currency { code name } info description fee netFee tax paidAmount rate ratePercentage giftCard { id balance } }

Implements

None