This may simply be a documentation task as far as core is concerned, but if an admin deletes a payment transaction, he or she ought to receive a prompt to void or refund the transaction prior to deletion. Any payment method module could alter this form as is if they wanted to, but it might be better to have a centralized way of managing this - like a pre-delete options / behavior callback that prevents deletion if the desired behavior doesn't complete successfully.

Comments

JulienD’s picture

Status: Active » Needs review
StatusFileSize
new5.3 KB

Hi,

Here is a quick WIP of what we can do to allow this. That certainly needs more work.

Let me know if it's a good way or not

rszrama’s picture

Status: Needs review » Active

Sorry, I don't think I'd go that way. This is already a basic form that can be altered by payment method modules via hook_form_alter(). It's pretty trivial to determine the payment method represented by a delete confirmation form by looking at the transaction in the form state.

JulienD’s picture

Ok, I admit It's a little bit overkill, but your description made me think that you were waiting for something like this.

To fix this issue you are waiting more for documentation on how altering this form ?

bojanz’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Looks like we gave up on this idea.