details:   https://code.tryton.org/tryton/commit/76c59182ddc9
branch:    7.6
user:      Cédric Krier <[email protected]>
date:      Thu Sep 25 17:32:00 2025 +0200
description:
        Always try to confirm Shopify sale after creation and update

        This is in case there is no transaction/payment to trigger the 
confirmation.

        Closes #14256
        (grafted from 92e503ff4aa6f10dbca34098c801a3f683db160e)
diffstat:

 modules/web_shop_shopify/web.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 4bf95d197ba2 -r 76c59182ddc9 modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py   Tue Oct 07 15:27:45 2025 +0200
+++ b/modules/web_shop_shopify/web.py   Thu Sep 25 17:32:00 2025 +0200
@@ -508,6 +508,7 @@
                 for sale, order in zip(sales, orders):
                     if sale.state != 'draft':
                         Payment.get_from_shopify(sale, order)
+                Sale.payment_confirm(sales)
 
     @classmethod
     def shopify_update_order(cls, shops=None):
@@ -606,6 +607,7 @@
                 shop = sale.web_shop
                 with shop.shopify_session():
                     Payment.get_from_shopify(sale, order)
+        Sale.payment_confirm(sales)
 
     @classmethod
     def check_modification(cls, mode, shops, values=None, external=False):

Reply via email to