mollie / spree-mollie-gateway

Mollie payments for Spree Commerce.
https://www.mollie.com
16 stars 23 forks source link

Show "authorized" status in spree admin #44

Closed vernondegoede closed 5 years ago

vernondegoede commented 5 years ago

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.