OffsitePayPlug::onNotify() always creates a new Commerce payment through mapPayplugPaymentToCommercePayplug(), which calls $payment_storage->create(). It never checks whether a payment with the same remote_id already exists. PayPlug retries a notification whenever the response isn't 2xx, and the same payment can be notified more than once. Each notification therefore adds another payment entity to the order.

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

nicolasgraph created an issue. See original summary.

nicolasgraph’s picture

Assigned: nicolasgraph » Unassigned
Status: Active » Needs review