Problem/Motivation

Currently Capture process may happened multiple times, in case multiple concurrent requests are sent to the Drupal.

Steps to reproduce

- Prepare an oder with payment
- Add logs to paymentCapture function for your payment gateway
- Send multiple requests to capture payment

Proposed resolution

Introduce locking mechanism that prevents processing the same payment multiple times

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pavel.bulat created an issue. See original summary.

beloglazov91’s picture

Assigned: pavel.bulat » Unassigned
Status: Active » Fixed

Thank you @pavel! Great work, merged and I'm going to create a new release 1.7 with your changes.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

beloglazov91’s picture

Status: Fixed » Closed (fixed)