Saferpay webhook faster than customer

Created on 22 July 2024, 5 months ago

Problem/Motivation

If the saferpay webhook is some milliseconds faster than the customer the order will be placed two times.
e.g.
Mon, 07/22/2024 - 13:09
Order moved from Fulfillment to Completed by the Fulfill order transition.

Mon, 07/22/2024 - 13:09
Order moved from Draft to Fulfillment by the Place order transition.

Mon, 07/22/2024 - 13:09
Order receipt email sent to customer@example.com.

amy6542
Mon, 07/22/2024 - 13:09
Customer completed checkout for this order.

amy6542
Mon, 07/22/2024 - 13:09
Order moved from Draft to Fulfillment by the Place order transition.

Anonymous (not verified)
Mon, 07/22/2024 - 13:09
Order receipt email sent to customer@example.com.

Anonymous (not verified)
Mon, 07/22/2024 - 13:09
Payment captured via SaferPay LIVE for CHF 29.00.
Transaction ID: 108957179239194.

Anonymous (not verified)
Mon, 07/22/2024 - 13:09
Payment authorized via SaferPay LIVE for CHF 29.00.
Transaction ID: 108957179239194.

Anonymous (not verified)

Steps to reproduce

It's hard to reproduce this issue one attempt could be that you throttle your connection to 3G.

Proposed resolution

Let's wait 30 seconds before we process the webhook.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany DiDebru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024