public function getConfig()
 {
     /* Get payment method configuration */
     $isEnabled = $this->hlpCfg->getWalletActive();
     $isPartialEnabled = $this->hlpCfg->getWalletPartialEnabled();
     $partialMaxPercent = $this->hlpCfg->getWalletPartialPercent();
     /* then compose data transfer object */
     $data = new \Praxigento\Wallet\Api\Data\Config\Payment\Method();
     $data->setIsEnabled($isEnabled);
     $data->setIsPartialEnabled($isPartialEnabled);
     $data->setPartialMaxPercent($partialMaxPercent);
     /* and add configuration data to checkout config */
     $result = [self::CFG_NAME => $data->getData()];
     return $result;
 }
 public function getConfig()
 {
     /* Get payment method configuration */
     $isEnabled = $this->hlpCfg->getWalletActive();
     $isNegativeBalanceEnabled = $this->hlpCfg->getWalletNegativeBalanceEnabled();
     $isPartialEnabled = $this->hlpCfg->getWalletPartialEnabled();
     $partialMaxPercent = $this->hlpCfg->getWalletPartialPercent();
     /* ... and additional configuration for other objects */
     $customerData = $this->_populateCustomerData();
     /* then compose data transfer object */
     $data = new \Praxigento\Wallet\Api\Data\Config\Payment\Method();
     $data->setIsEnabled($isEnabled);
     $data->setIsNegativeBalanceEnabled($isNegativeBalanceEnabled);
     $data->setIsPartialEnabled($isPartialEnabled);
     $data->setPartialMaxPercent($partialMaxPercent);
     /* and add configuration data to checkout config */
     $result = ['customerData' => $customerData, self::CFG_NAME => $data->getData()];
     return $result;
 }