<?php

use PaymentWebhooks\Infrastructure\Config;

return [
    'log_enabled' => Config::get('PW_MOLLIE_LOG'),
    'status_map' => [
        'paid' => 'processing',
        'failed' => 'failed',
        'expired' => null,
        'canceled' => null,
        // TODO: refunded ???
    ],
    'json_fields' => [
        'order_id' => 'metadata.orderId',
        'status' => 'status',
        'transaction_id' => 'id',
    ],
    'payment_collect_data_trigger' => [
        'status' => 'paid',
    ],
    'payment_data' => [
        'method' => 'nuxt_Mollie',
        'title'  => 'Mollie',
    ],
];
