Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Payment
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2012 at 05:37 UTC
Updated:
29 Jan 2013 at 17:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
tr commentedComment #2
longwaveMarked #1426046: Accessing the payment transaction ID from a vew as duplicate
Comment #3
DanZ commentedSee also #1876496: Calculate additional Ordered Product fields for Views.
Should payment records be entities?
Comment #4
DanZ commentedYes, payment receipts should be entities. They should be fieldable to allow attachment of extra information by other modules, especially payment modules, instead of using the serialized "data" field. That would make those extra fields available in Views, once modules started using them.
The tricky part is converting the assorted code that interacts with payment receipts to use the entity interface without breaking anything.
The question is whether it's a good idea to expose the table to Views before converting it to an entity.
Comment #5
longwaveI don't think it's worth changing payment receipts to be entities now in 7.x - I don't see what benefit this gains us, and we cannot change the underlying data structure now without affecting existing contrib modules. In this issue I think we should just describe {uc_payment_receipts} to Views via a relationship to {uc_orders}, and make a note in the Drupal 8 issue that payment receipts should become entities in the future.
Comment #6
longwaveThis patch describes most of the payment receipt data to Views. Add a relationship to Order: Payments to see the fields.
Comment #7
longwaveCommitted #6.