Describe your bug or feature request.
The PaymentAccessControlHandler only allows test transactions to be deleted. It would be nice to be able to delete manual payments, but they don't utilize a transaction mode. So instead of:
if ($operation == 'delete') {
// @todo Add a payment gateway method for this check,
// to allow a differently named test mode.
$access = $access->andIf(AccessResult::allowedIf($entity->getPaymentGatewayMode() == 'test'));
}
We could just check $entity->getPaymentGatewayMode() != 'live'
steps to reproduce it from a clean install.
Create a manual payment and try to delete it.
Comments
Comment #3
jsacksick commentedlgtm, committed thanks!