Merchants are confused by the "balance_due" status. Even though a payment has the state "pending", its balance is "balance_due". This makes it difficult for merchants to see if they can actually ship their order.
We should show "authorized" for payments whenever they are really authorized.
We can assume that a payment is authorized when its source is a Mollie payment source, the payment method name is klarnapaylater or klarnasliceit and its status is pending. Mollie payment sources will only use the "pending" state for authorized payments.
Note: this is a temporary solution. We need to find a better way to show the Mollie payment status in the Spree admin by not having to overwrite the complete ERB file.
Merchants are confused by the "balance_due" status. Even though a payment has the state "pending", its balance is "balance_due". This makes it difficult for merchants to see if they can actually ship their order.
We should show "authorized" for payments whenever they are really authorized.
We can assume that a payment is
authorized
when its source is a Mollie payment source, the payment method name isklarnapaylater
orklarnasliceit
and its status ispending
. Mollie payment sources will only use the "pending" state for authorized payments.Note: this is a temporary solution. We need to find a better way to show the Mollie payment status in the Spree admin by not having to overwrite the complete ERB file.