You are here

function commerce_mollie_status_explained in Commerce Mollie 7

Return a explaining message with the Mollie status.

Parameters

$status:

Return value

string The explanation with a status.

1 call to commerce_mollie_status_explained()
commerce_mollie_request_status in ./commerce_mollie.module
Request new payment status.

File

./commerce_mollie.module, line 475

Code

function commerce_mollie_status_explained($status) {
  $status_messages = array(
    'open' => t('The payment is created but nothing happened yet.'),
    'cancelled' => t('The payment has been cancelled by the customer.'),
    'pending' => t('The payment is in transit.'),
    'expired' => t('The payment has expired.'),
    'paid' => t('The payment has been paid.'),
    'paidout' => t('The payment has been paid to your bank account.'),
    'refunded' => t('The payment has had a refund to the customer.'),
  );
  if (array_key_exists($status, $status_messages)) {
    return $status_messages[$status];
  }
  return '';
}