return [];
} /**
* {@inheritdoc}
*/
public function savePaymentData($userId, Enlight_Controller_Request_Request
$request) { $lastPayment =
$this->
getCurrentPaymentDataAsArray($userId);
$paymentMean =
Shopware()->
Models()->
getRepository(Payment::
class)->
getAllPaymentsQuery(['name' => 'Sepa'
])->
getOneOrNullResult(AbstractQuery::HYDRATE_ARRAY
);
$data =
[ 'use_billing_data'
=> ($request->
getParam('sSepaUseBillingData'
) === 'true' ? 1 : 0
),
'bankname' =>
$request->
getParam('sSepaBankName'
),
'iban' =>
preg_replace('/\s+|\./', '',
(string) $request->
getParam('sSepaIban'
)),
'bic' =>
$request->
getParam('sSepaBic'
),
];
$data =
Shopware()->
Container()->
get('events'
)->
filter('Sepa_Payment_Method_Save_Payment_Data',
$data,
[ 'subject' =>
$this,
'params' =>
$request->
getParams(),
]);