GitHub

ShopifyCartPaymentInput

interface

import { ShopifyCartPaymentInput } from '@daffodil/driver/shopify'

The input fields for updating the payment method that will be used to checkout.

interface ShopifyCartPaymentInput {
  amount: ShopifyMoneyInput
  directPaymentMethod: ShopifyCartDirectPaymentMethodInput
  freePaymentMethod: ShopifyCartFreePaymentMethodInput
  sourceIdentifier: string
  walletPaymentMethod: ShopifyCartWalletPaymentMethodInput
}

Properties

amount
ShopifyMoneyInput

The amount that the customer will be charged at checkout.

directPaymentMethod
ShopifyCartDirectPaymentMethodInput

The input fields to use when checking out a cart with a direct payment method (like a credit card).

freePaymentMethod
ShopifyCartFreePaymentMethodInput

The input fields to use to checkout a cart without providing a payment method. Use this payment method input if the total cost of the cart is 0.

sourceIdentifier
string

An ID of the order placed on the originating platform. Note that this value doesn't correspond to the Shopify Order ID.

walletPaymentMethod
ShopifyCartWalletPaymentMethodInput

The input fields to use when checking out a cart with a wallet payment method (like Shop Pay or Apple Pay).