We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

  • cyattilakiss's avatar
    [PW-1993] Fix adyen_order_payment new entry creation issue during cron (#614) · f2d13c25
    cyattilakiss authored
    Add try catch into cron process when new adyen_order_payment entity is added
    
    Turned out that other plugins can intercept into invoice creation and
    these are potential sources of exceptions. After inserting a new
    adyen_order_payment entity we start the invoice creation process and if
    something goes wrong during that process we reprocess the notification in
    the next batch. Therefore the adyen_order_payment is already saved and the
    next run will violate the unique constraint setting of the table.
    
    This is a quick solution to prevent the process to stop and the order to
    get stuck because of this exception.
    
    Resolves GitHub issues: #603, #610
    f2d13c25
Cron.php 74.4 KB