Skip to content

Nets Payment Provider not updating all order authentication Ids #786

@MortenLe

Description

@MortenLe

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions