Open Razko90 opened 3 months ago
It seems as the function dibs_easy_maybe_create_order are running twice.
07-23-2024 @ 14:30:08 - {"id":"5a34d8123f2a435e98d76c4f67d9d74e","type":"POST","title":"Create order"
This was ran right before the first Create order and this is the PaymentId thats registered in the postmeta table.
With the embeded checkout, we started noticing alot of orders being cancelled even tho they are successful. Then they show up in the NETS adminpanel with an ordernumber of 1. WordPress/6.4.5; Plugin/2.9.0 - PHP/8.0.30 - Krokedil
07-23-2024 @ 14:30:09 - {"id":"994478034243459084c302e120289732","type":"POST","title":"Create order 07-23-2024 @ 14:32:09 - "Frontend JS: Address changed is triggered." 07-23-2024 @ 14:32:17 - "Frontend JS: Pay initialized is triggered with payment id: 994478034243459084c302e120289732" 07-23-2024 @ 14:32:18 - "processWooCheckout triggered and checkout form about to be submitted for Nets payment ID 994478034243459084c302e120289732" 07-23-2024 @ 14:32:18 - "Frontend JS: Received \"customer data\" from Nets Easy" 07-23-2024 @ 14:32:20 - "Frontend JS: Successfully placed order." 07-23-2024 @ 14:32:41 - "Payment created webhook listener hit {\"id\":\"efa176f93ae84f87b663c4e6c8aa305f\", * REDACTED ** \"paymentId\":\"994478034243459084c302e120289732\"}}" 07-23-2024 @ 14:32:42 - "104161: Confirmation endpoint hit for order." 07-23-2024 @ 14:32:42 - "104161: Confirm the Nets order from the confirmation page." 07-23-2024 @ 14:35:04 - "Execute Payment created API callback. Payment ID:994478034243459084c302e120289732. Order number: 1. Amount: 14900"
07-23-2024 @ 14:35:04 - "No corresponding order ID was found for Payment ID 994478034243459084c302e120289732"
And that order id has a totaly diffrent paymentId in the postmeta table.