return [];
} /**
* {@inheritdoc}
*/
public function savePaymentData($userId, Enlight_Controller_Request_Request
$request) { $lastPayment =
$this->
getCurrentPaymentDataAsArray($userId);
$paymentMean =
Shopware()->
Models()->
getRepository(Payment::
class)->
getActivePaymentsQuery(['name' => 'debit'
])->
getOneOrNullResult(AbstractQuery::HYDRATE_ARRAY
);
$data =
[ 'account_number' =>
$request->
getParam('sDebitAccount'
),
'bank_code' =>
$request->
getParam('sDebitBankcode'
),
'bankname' =>
$request->
getParam('sDebitBankName'
),
'account_holder' =>
$request->
getParam('sDebitBankHolder'
),
];
if (!
$lastPayment) { $date =
new DateTime();
$data['created_at'
] =
$date->
format('Y-m-d'
);