# Cancel partial delivery and payment

**URL:** <https://forum.litium.com/t/cancel-partial-delivery-and-payment/1993>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [April 15, 2021, 11:41am UTC](https://forum.litium.com/t/cancel-partial-delivery-and-payment/1993 "2021-04-15T11:41:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aram](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/aram/32/19_2.png) [@aram](https://forum.litium.com/u/aram)\
**Post date:** [April 15, 2021, 11:41am UTC](https://forum.litium.com/t/cancel-partial-delivery-and-payment/1993/1 "2021-04-15T11:41:44Z")

</div>

Scenario:  
1- Customer orders article A and B.  
2- Article A will be delivered in a partial delivery and payment gets paid  
3- Customer doesn’t want article B anymore and we need to cancel that part of the order (the delivery is still in processing state)

Problem:  
In step 3 I set the delivery state to `CANCELLED` but the payment is still in `RESERVED` and I am not able to cancel that part of the payment and when I check the `PaymentProvider`-object on the paymentInfo I see `CanCancelCurrentTransaction = false`, why? How can I cancel the payment as well?

Litium version: _[7.4.2]_

---

<div class="post-metadata">

**Author:** ![anusha.ganegoda](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/anusha.ganegoda/32/58_2.png) [@anusha.ganegoda](https://forum.litium.com/u/anusha.ganegoda)\
**Post date:** [April 15, 2021, 11:58am UTC](https://forum.litium.com/t/cancel-partial-delivery-and-payment/1993/2 "2021-04-15T11:58:06Z")

</div>

so, in step 2, I suppose you have splited the order into two deliveries, Delivery for A and Delivery for B.  
and Delivery for A should be “Delivered” and the payment is splited now to two, one paymentinfo for payment A and another payment for payment B, and payment for A is “Paid”, and payment for B is still “Reserved”  
The remaining delivery, which is still in processing, would need to be cancelled.

If you put this delivery now to Cancelled, then in the Litium accelerator code, it will try to attempt to put the payment B into Cancelled state. So, for this payment object, which is the payment for B, you see CanCancelCurrentTransaction = false, would you confirm?

Also, which payment provider are you using?

---

<div class="post-metadata">

**Author:** ![aram](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/aram/32/19_2.png) [@aram](https://forum.litium.com/u/aram)\
**Post date:** [April 15, 2021, 12:02pm UTC](https://forum.litium.com/t/cancel-partial-delivery-and-payment/1993/3 "2021-04-15T12:02:13Z")

</div>

Correct!

We are using only Adyen _[Version=4.7.115.0]_ i this solution.

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [April 16, 2021, 3:08pm UTC](https://forum.litium.com/t/cancel-partial-delivery-and-payment/1993/4 "2021-04-16T15:08:46Z")

</div>

So I think you need also to do this approach:

> [@Change a Klarna order after it's Reserved](https://forum.litium.com/t/change-a-klarna-order-after-its-reserved/1994/2):
>
> It is bit tricky to handle a partial cancellation, because the payment providers, including Klarna do only allow to cancel the remaining amount. As at now, clear way to handle it is as follows: Do NOT change the order. Make a full charge of the order. Process a return order, for the items that could not be delivered. Customer service should explain that to the end customer, “the amount for the items that we cannot deliver will be refunded”. So customer is not confused. It will be very easy …

---

<div class="post-metadata">

**Author:** ![aram](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/aram/32/19_2.png) [@aram](https://forum.litium.com/u/aram)\
**Post date:** [April 19, 2021, 6:47am UTC](https://forum.litium.com/t/cancel-partial-delivery-and-payment/1993/5 "2021-04-19T06:47:58Z")

</div>

Not really, since my case is a bit different with what you are referring to. In my case we actually want is to cancel the remaining amount and that should be possible according to Anusha:

> [@Change a Klarna order after it's Reserved](https://forum.litium.com/t/change-a-klarna-order-after-its-reserved/1994/2):
>
> because the payment providers, including Klarna do only allow to cancel the remaining amount.

---

<div class="post-metadata">

**Author:** ![aram](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/aram/32/19_2.png) [@aram](https://forum.litium.com/u/aram)\
**Post date:** [April 21, 2021, 8:46am UTC](https://forum.litium.com/t/cancel-partial-delivery-and-payment/1993/6 "2021-04-21T08:46:27Z")

</div>

Any updates @anusha.ganegoda? 😃

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [May 19, 2021, 8:47am UTC](https://forum.litium.com/t/cancel-partial-delivery-and-payment/1993/7 "2021-05-19T08:47:10Z")

</div>

Closed on May 19, 2021, 8:47am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
