{"title":"Update Checkout Deposit Form - Liquid Form Reference","slug":"update-checkout-deposit-form-reference","url":"https://support.storeconnect.com/articles/update-checkout-deposit-form-reference","url_markdown":"https://support.storeconnect.com/articles/update-checkout-deposit-form-reference.md","subtitle":null,"summary":"The `update-checkout-deposit` Liquid form sets or clears the amount a customer pays now when the checkout deposit is turned on. Use it to build a custom \u0026quot;Amount to pay now\u0026quot; field at the payment step.","type":"Developer_Documentation","video_url":"","keywords":"liquid, forms, update-checkout-deposit, checkout deposit, amount to pay now, part payment, checkout, storeconnect, remote, data-success","last_modified":"2026-11-25T21:09:53+0000","body_markdown":"## Usage\n\n\n```liquid\n\n{%- if current_cart.can_offer_checkout_deposit? %}\n  {% form \"update-checkout-deposit\", remote: true, data-success: \"sc.deposit-updated\", data-type: \"json\" %}\n    {%- assign field = form.fields[\"checkout_deposit_amount\"] %}\n    \u003clabel for=\"{{ field.id }}\"\u003eAmount to pay now\u003c/label\u003e\n    \u003cinput\n      type=\"text\"\n      inputmode=\"decimal\"\n      name=\"{{ field.name }}\"\n      id=\"{{ field.id }}\"\n      value=\"{{ current_cart.checkout_deposit_amount }}\"\n      placeholder=\"{{ current_cart.checkout_full_total | money }}\"\u003e\n    {%- if current_cart.checkout_minimum_deposit_amount \u003e 0 %}\n      \u003cp\u003eMinimum {{ current_cart.checkout_minimum_deposit_amount | money }}\u003c/p\u003e\n    {%- endif %}\n    \u003cbutton type=\"submit\"\u003eUpdate\u003c/button\u003e\n  {% endform %}\n{%- endif %}\n```\n\n\nThe `update-checkout-deposit` form sets the amount the customer pays now when the [checkout deposit](checkout-deposit) is turned on. The rest of the order total is left owing.\n\n| Property | Value |\n|----------|-------|\n| **Form Name** | `update-checkout-deposit` |\n| **Category** | Checkout |\n\n## Fields\n\n| Field | Description |\n|-------|-------------|\n| `checkout_deposit_amount` | The amount to pay now. Leave it blank, or submit `0` or less, to clear the deposit so the customer pays the full total. |\n\nAny tag option is passed through as an HTML attribute on the `\u003cform\u003e` element.\n\n## How the amount is applied\n\n- StoreConnect adjusts an amount that is out of range rather than rejecting it. An amount above the full total becomes the full total. An amount below what must be paid in full (digital products, vouchers, and subscriptions that cannot be deferred) becomes that amount.\n- The suggested minimum from the `checkout.deposit.minimum_percentage` store variable is not enforced by the form. Show it to the customer from `current_cart.checkout_minimum_deposit_amount`, and validate it in the browser if you need to.\n- The submission fails when the checkout deposit does not apply to the cart: the feature is off, nothing needs a currency payment, or an item has a per-product deposit. Render the form only when `current_cart.can_offer_checkout_deposit?` is true.\n\n## Response\n\nThe form submits to the cart and responds with JSON rather than a redirect. Submit it with `remote: true` and `data-type: \"json\"`. A successful response carries the updated `checkout_deposit_amount`, `checkout_full_total`, `amount_due_now`, and `total_payable`, which you can use to update the payment total on the page. A failed response carries an `error` message.\n\n## Form Object\n\nInside the form block, you can access the `form` object which provides:\n\n- `form.errors` — Any validation errors after submission\n- `form.fields[\"checkout_deposit_amount\"]` — The field's `name`, `id`, and `value`"}