# PaymentStatusSynchronizer is not syncing old orders

**URL:** <https://forum.litium.com/t/paymentstatussynchronizer-is-not-syncing-old-orders/1769>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [November 13, 2020, 11:18am UTC](https://forum.litium.com/t/paymentstatussynchronizer-is-not-syncing-old-orders/1769 "2020-11-13T11:18:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/samuel/32/479_2.png) [@samuel](https://forum.litium.com/u/samuel)\
**Post date:** [November 13, 2020, 11:18am UTC](https://forum.litium.com/t/paymentstatussynchronizer-is-not-syncing-old-orders/1769/1 "2020-11-13T11:18:31Z")

</div>

We have a job running Litium.Foundation.Modules.ECommerce.Payments.PaymentStatusSynchronizer to synchronize status changes with our payment provider, Braintree. We’re having problems with orders not geting synchronized after a while even if the status hasn’t moved to Paid in Litium. The orders isn’t sent into the overridden SyncPaymentStatusWithProvider method any longer when the job runs. It’s working correctly for newer orders and it works for the older one’s if we do a manual sync from backoffice.

Is there a default time limit for when orders aren’t synced anymore? If so - is there a way to extend that?

Litium version: 7.4

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [November 13, 2020, 12:18pm UTC](https://forum.litium.com/t/paymentstatussynchronizer-is-not-syncing-old-orders/1769/2 "2020-11-13T12:18:41Z")

</div>

Looks like it defaults to 3 days, but you should be able to add a parameter to the task, `parameters="MaxAge=Y"` to override it.

---

<div class="post-metadata">

**Author:** ![samuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/samuel/32/479_2.png) [@samuel](https://forum.litium.com/u/samuel)\
**Post date:** [November 13, 2020, 1:03pm UTC](https://forum.litium.com/t/paymentstatussynchronizer-is-not-syncing-old-orders/1769/3 "2020-11-13T13:03:42Z")

</div>

OK, great. And I guess that Y is days, or?

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [November 13, 2020, 1:04pm UTC](https://forum.litium.com/t/paymentstatussynchronizer-is-not-syncing-old-orders/1769/4 "2020-11-13T13:04:42Z")

</div>

Yes, exactly. Should’ve mentioned that directly 🙂

---

<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:** [December 11, 2020, 1:04pm UTC](https://forum.litium.com/t/paymentstatussynchronizer-is-not-syncing-old-orders/1769/5 "2020-12-11T13:04:52Z")

</div>

Closed on December 11, 2020, 1:04pm UTC

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