Adyen sometimes send us chargeback notifications with an empty gross value before sending the complete notifications. Here's an example of one of those:
Oct 13 20:24:03 civi1002 civicrm.wmf[3762931]: civicrm.wmf.INFO: RefundQueueConsumer array{"gross":"","date":1697133875,"type":"chargeback","gateway":"adyen","gateway_refund_id":"BK4GJ678DX5MPK42","gateway_parent_id":"GVZ9SNZSG95CKMG2","gross_currency":"JPY","source_name":" Recon Auditor","source_type":"audit","source_host":"civi1002","source_run_id":3750834,"source_version":"unknown","source_enqueued_time":1697228587}
Oct 13 20:24:03 civi1002 civicrm.wmf[3762931]: civicrm.wmf.INFO: refund BK4GJ678DX5MPK42: Marking as refunded
Oct 13 20:24:03 civi1002 civicrm.wmf[3762931]: civicrm.wmf.INFO: refund BK4GJ678DX5MPK42: Successfully marked as refunded
Oct 13 20:24:04 civi1002 civicrm.wmf[3762931]: civicrm.wmf.INFO: RefundQueueConsumer array{"gross":"13.43","date":1691500282,"type":"chargeback","gateway":"adyen","gateway_refund_id":"BK4GJ678DX5MPK42","gateway_parent_id":"GVZ9SNZSG95CKMG2","gross_currency":"USD","source_name":" Recon Auditor","source_type":"audit","source_host":"civi1002","source_run_id":3750834,"source_version":"unknown","source_enqueued_time":1697228587}
Oct 13 20:24:04 civi1002 civicrm.wmf[3762931]: civicrm.wmf.INFO: refund BK4GJ678DX5MPK42: Marking as refundedIn our check for the difference between donated and refunded here, for notifications with gross set to '', we save a value equal to the original value where instead we are suppose to save value equal to the difference caused by fluctuations in FX.
From the query provided by @JMando in T351651, we can see that this year we've had 568 transactions from Adyen due to this notification.
We need to ensure empty gross values throws an error in the refund queue consumer.
