---
title: CartPaymentInput - Storefront API
description: The input fields for updating the payment method that will be used to checkout.
api_version: 2026-04
source_url:
  html: https://shopify.dev/docs/api/storefront/latest/input-objects/CartPaymentInput
  md: https://shopify.dev/docs/api/storefront/latest/input-objects/CartPaymentInput.md
---

# Cart​Payment​Input

input\_object

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

## Fields

* amount

  [Money​Input!](https://shopify.dev/docs/api/storefront/latest/input-objects/MoneyInput)

  required

  The amount that the customer will be charged at checkout.

* direct​Payment​Method

  [Cart​Direct​Payment​Method​Input](https://shopify.dev/docs/api/storefront/latest/input-objects/CartDirectPaymentMethodInput)

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

* free​Payment​Method

  [Cart​Free​Payment​Method​Input](https://shopify.dev/docs/api/storefront/latest/input-objects/CartFreePaymentMethodInput)

  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.

* source​Identifier

  [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

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

* wallet​Payment​Method

  [Cart​Wallet​Payment​Method​Input](https://shopify.dev/docs/api/storefront/latest/input-objects/CartWalletPaymentMethodInput)

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

***

## Mutations using this input

* [cart​Payment​Update.payment](https://shopify.dev/docs/api/storefront/latest/mutations/cartPaymentUpdate#arguments-payment)

  ARGUMENT

***

## Map

### Mutations using this input

* [cart​Payment​Update.payment](https://shopify.dev/docs/api/storefront/latest/mutations/cartPaymentUpdate#arguments-payment)