# Update Payment Transaction

Update a payment transaction already in progress given a `cart_id`. Violet automatically performs this operation when the price of a cart changes.

{% hint style="info" %}
You can choose to use this call to force refresh the underlying payment transaction of a cart.\
This option only applies if you are using `intent_based_capture: true`.\
Since Violet manages the relationship with the Payment Service Provider (PSP), this call will update any underlying payment transcations in the PSP to the latest price of the cart.
{% endhint %}

{% openapi src="<https://3937396275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8lXIp71Ct5qCUhXjko2q%2Fuploads%2Fgit-blob-8ab007712b2fb1063fba6d0d5fac84738eef8644%2Forder-service.yaml?alt=media>" path="/checkout/cart/{cart\_id}/payment/update" method="post" expanded="true" %}
[order-service.yaml](https://3937396275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8lXIp71Ct5qCUhXjko2q%2Fuploads%2Fgit-blob-8ab007712b2fb1063fba6d0d5fac84738eef8644%2Forder-service.yaml?alt=media)
{% endopenapi %}
