public function convertPaymentStruct(Payment
$payment) { $data =
[ 'id' =>
$payment->
getId(),
'name' =>
$payment->
getName(),
'description' =>
$payment->
getDescription(),
'template' =>
$payment->
getTemplate(),
'class' =>
$payment->
getClass(),
'table' =>
$payment->
getTable(),
'hide' =>
$payment->
getHide(),
'additionaldescription' =>
$payment->
getAdditionalDescription(),
'debit_percent' =>
$payment->
getDebitPercent(),
'surcharge' =>
$payment->
getSurcharge(),
'surchargestring' =>
$payment->
getSurchargeString(),
'position' =>
$payment->
getPosition(),
'active' =>
$payment->
getActive(),
'esdactive' =>
$payment->
getEsdActive(),
'embediframe' =>
$payment->
getEmbediframe(),
'hideprospect' =>
$payment->
getHideProspect(),
'action' =>
$payment->
getAction(),
'pluginID' =>
$payment->
getPluginID(),
'source' =>
$payment->
getSource(),
'mobile_inactive' =>
$payment->
getMobileInactive(),