mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
28 lines
541 B
PHP
28 lines
541 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Ninja\PaymentDrivers;
|
||
|
|
||
|
class PaymillPaymentDriver extends BasePaymentDriver
|
||
|
{
|
||
|
public function tokenize()
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
protected function paymentDetails($paymentMethod = false)
|
||
|
{
|
||
|
$data = parent::paymentDetails($paymentMethod);
|
||
|
|
||
|
if ($paymentMethod) {
|
||
|
return $data;
|
||
|
}
|
||
|
|
||
|
if (! empty($this->input['sourceToken'])) {
|
||
|
$data['token'] = $this->input['sourceToken'];
|
||
|
unset($data['card']);
|
||
|
}
|
||
|
|
||
|
return $data;
|
||
|
}
|
||
|
}
|