Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate orders #11

Open
marijorg opened this issue Nov 3, 2021 · 3 comments
Open

Duplicate orders #11

marijorg opened this issue Nov 3, 2021 · 3 comments

Comments

@marijorg
Copy link

marijorg commented Nov 3, 2021

Several customers reports of issues with duplicate orders when using Vipps. The Vipps payment id the same, but two separate orders are created, both processed at the same time.

The issue seem to be caused by user loosing session cookie in redirect, ending up on other instance (which may occur on phone), ref:

"Because of this Vipps recommends a stateless approach on the website that is supposed to be the end session. An example would a polling-based result handling from a value in the redirect URL (fallback)."

What happens is that both callback (user session) and api and/or polling call from api initiates order creation.

The api and polling calls from Vipps are fallbacks to guarantee order creation (i.e. if user closes browser or navigates away too early).

Suggested solution:

Note:
This needs fix: DateTime.Now needs to be converted to UTC time:
https://github.com/Geta/vipps/blob/commerce-13/src/Vipps/Polling/VippsPollingService.cs#L78

@cloveras
Copy link
Contributor

cloveras commented Nov 3, 2021

Hello, @marijorg!

Thanks for this, I'll pass it on the the .. plugin people.

Btw: Duplicate orders may be related to the recent problems at DNB: https://www.dnbstatus.no/incidents I know we are doing some clean-up work related to that.

Christian, Vipps

@svenrog
Copy link
Contributor

svenrog commented Dec 1, 2021

Is this issue still relevant after #12?

@Nikola117
Copy link

We are still having this issue, this was released in version 4.1.1 and we are on 4.1.4, I have logs if needed. Can you help with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants