/** * Build the class. * * @since 4.3.0 * @param \SV_WC_Payment_Gateway_Direct $gateway The gateway instance */ public function __construct(SV_WC_Payment_Gateway_Direct $gateway) { $this->gateway = $gateway; $this->environment_id = $gateway->get_environment(); }