Umbraco.Commerce.Issues icon indicating copy to clipboard operation
Umbraco.Commerce.Issues copied to clipboard

Nets Payment Provider not updating all order authentication Ids

Open MortenLe opened this issue 2 months ago • 1 comments

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);

Image

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

MortenLe avatar Nov 04 '25 16:11 MortenLe

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

acoumb avatar Nov 05 '25 07:11 acoumb