A commerce payment transaction entity has a 'payload' property, which can hold information returned by a payment provider, useful when debugging or just to provide additional information about a transaction to site administrators (for example, when using Ogone, which payment method offered by Ogone was used?). Commerce already displays this information to users with the "Administer Payments"-permission:

Example of Commerce showing the payload information.

The patch attached saves Ogone's feedback in the transaction's payload property. Feedback handling was slightly altered to remove $_SESSION parameters and $_GET['q'] to prevent those from getting included in the payload.

CommentFileSizeAuthor
ogone-payload.patch1.38 KBmr.baileys
ogone_payload.png55.14 KBmr.baileys

Comments

svendecabooter’s picture

Status: Needs review » Fixed

Good idea! Could help a lot in debugging.
Thanks once again :) Committed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.