Closed (won't fix)
Project:
Payment
Version:
7.x-1.4
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2013 at 20:03 UTC
Updated:
15 Apr 2014 at 22:47 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
xanoThis patch partly exposes payment status items. The old payment status for that Rules event is now fully exposed. Payment status items on payments are not fully exposed yet, as I have haven't been able to find out how to do that using hook_entity_property_info() yet, so that part needs some work.
Comment #2
xanoThis probably depends on #1621084: Support list<struct> type tokens.
Comment #3
xanoThis patch adds Payment::current_status, which contains the PaymentStatusItem that was last set using Payment::setStatus(). It is untested, but I believe this approach should work. However, we'd ideally fake this property for a Rules token, as this patch adds duplicate data that may lose sync if a developer doesn't read the documentation and writes to Payment::current_status directly.
Comment #4
xanoImproved code comments.
Comment #5
dariogcode commentedHi Xano, thanks for the support. Where I should apply this patch? in the dev or the stable version? (I think i have a "patched" version of payment and want to move to the latest version if all is in dev)
Thanks!
Comment #6
xanoIdeally you'll always patch your local Git working copy, because that contains the latest code. Otherwise the dev will work in most cases, but not all.
Comment #7
xanoIf you want this feature to be well (the previous patch is a workaround), please help fix #1946746: Negative deltas for list properties and #1621084: Support list<struct> type tokens.
Comment #8
dariogcode commentedThis doesn't work for "data selection mode" in rules and fail (And probably fail "direct input mode" in some cases).
Comment #9
xanoI'm sorry, what exactly doesn't work? What does or doesn't happen?
Comment #10
xanoComment #11
xanoThere is no chance that this will ever become possible, since the focus on Rules has shifted to the Drupal 8 port.