Payment methods should be able to control payment status updates through the UI, because manually updating the status does not work well with any payment method.

In the simplest form, we can just add a form of access control: if a payment has no payment method, access is denied. If it does, the payment method plugin decides whether or not to grant access.

A more complex solution would allow plugins to define which statuses the payment can be set to.

CommentFileSizeAuthor
#2 payment_2294413_2.patch15.34 KBxano

Comments

xano’s picture

As with #2293215: Let payment methods support authorization and capture separately, add an interface that payment methods can implement and that lets them specify whether a payment's status can be updated, and which statuses can be set.

When this is done, remove the warning in the update status form, and consider merging the form with the payment edit form. Consult UX experts to make sure a form of which components are only available under certain conditions is not bad for UX.

xano’s picture

Status: Active » Needs review
StatusFileSize
new15.34 KB

  • Xano committed 3cda0ee on
    Issue #2294413 by Xano: Let payment methods control payment status...
xano’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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