<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Store/etc/config.xsd">
    <default>
        <payment>
            <codpayment>
                <payment_action>capture</payment_action><!-- You can use another methor like capture  -->
                <model>Homegym\Codpayment\Model\PaymentMethod</model>
                <active>1</active>
                <title>Cash On Delivery</title>
                <order_status>pending</order_status><!-- set default order status-->
            </codpayment>
        </payment>
    </default>
</config>