Nets Payment Provider not updating all order authentication Ids
Which component is this issue related to?
Nets Payment Provider
Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)
16.0.0
Bug summary
When calling /umbraco/commerce/storefront/api/v1/checkout/:orderId/token multiple times, using the same OrderId, it seems to update the netsEasyWebhookAuthKey key in the database, but not the authentication part of the Webhookevent.
Specifics
I've added a couple of lines of logging to the original code, then hit /umbraco/commerce/storefront/api/v1/checkout/:orderId/token 3 times, with the same orderId.
Logger.Info("Nets Easy OneTime Payment initiated. Order: {OrderNumber}, PaymentId: {PaymentId}, CheckoutKey: {CheckoutKey}, {authKey}", ctx.Order.OrderNumber, paymentId, checkoutKey, webhookAuthKey);
The callback will fail, since the webhookAuthKey and the authentication for the webhooks are now out of sync.
Steps to reproduce
Hit /umbraco/commerce/storefront/api/v1/checkout/:orderId/token multiple times, with the same orderId.
Expected result / actual result
Expected: Nets webhook callback to be authenticated. Actual: Callback fails to be authenticated.
Dependencies
Umbraco.16.x Umbraco.Commerce 16.x Umbraco.Commerce.PaymentProviders.Nets 16
This item has been added to our backlog AB#61692
Hi @MortenLe ,
Thank you for raising this, we are aware of the issue you are experiencing, we've added it to our backlog and we will look into it in an upcoming sprint.
Adrian