mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
29 lines
564 B
PHP
29 lines
564 B
PHP
<?php namespace App\Ninja\PaymentDrivers;
|
|
|
|
|
|
class PayPalExpressPaymentDriver extends BasePaymentDriver
|
|
{
|
|
public function gatewayTypes()
|
|
{
|
|
return [
|
|
GATEWAY_TYPE_PAYPAL
|
|
];
|
|
}
|
|
|
|
protected function paymentDetails($paymentMethod = false)
|
|
{
|
|
$data = parent::paymentDetails();
|
|
|
|
$data['ButtonSource'] = 'InvoiceNinja_SP';
|
|
|
|
return $data;
|
|
}
|
|
|
|
protected function creatingPayment($payment, $paymentMethod)
|
|
{
|
|
$payment->payer_id = $this->input['PayerID'];
|
|
|
|
return $payment;
|
|
}
|
|
}
|