2016-06-20 16:14:43 +02:00
|
|
|
<?php namespace App\Ninja\PaymentDrivers;
|
|
|
|
|
|
|
|
|
|
|
|
class PayPalExpressPaymentDriver extends BasePaymentDriver
|
|
|
|
{
|
2016-06-22 20:42:09 +02:00
|
|
|
public function gatewayTypes()
|
2016-06-20 16:14:43 +02:00
|
|
|
{
|
|
|
|
return [
|
|
|
|
GATEWAY_TYPE_PAYPAL
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function paymentDetails($paymentMethod = false)
|
|
|
|
{
|
|
|
|
$data = parent::paymentDetails();
|
|
|
|
|
|
|
|
$data['ButtonSource'] = 'InvoiceNinja_SP';
|
|
|
|
|
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
|
2016-06-23 19:17:02 +02:00
|
|
|
protected function creatingPayment($payment, $paymentMethod)
|
2016-06-20 16:14:43 +02:00
|
|
|
{
|
|
|
|
$payment->payer_id = $this->input['PayerID'];
|
|
|
|
|
|
|
|
return $payment;
|
|
|
|
}
|
|
|
|
}
|