mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 08:14:35 -04:00
paypal
This commit is contained in:
parent
62949b2fad
commit
3721e2b7f1
@ -73,7 +73,7 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
|
|||||||
//\Log::error(print_r($response->getData()));
|
//\Log::error(print_r($response->getData()));
|
||||||
\Log::error($response->getData());
|
\Log::error($response->getData());
|
||||||
//dd($response);
|
//dd($response);
|
||||||
$payment = $this->createPayment($response);
|
$payment = $this->createPayment($response->getData());
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -95,7 +95,7 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
|
|||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildReturnUrl($input)
|
private function buildReturnUrl($input) : string
|
||||||
{
|
{
|
||||||
$url = $this->client->company->domain . "client/payments/process/response";
|
$url = $this->client->company->domain . "client/payments/process/response";
|
||||||
$url .= "?company_gateway_id={$this->company_gateway->id}&gateway_type_id=".GatewayType::PAYPAL;
|
$url .= "?company_gateway_id={$this->company_gateway->id}&gateway_type_id=".GatewayType::PAYPAL;
|
||||||
@ -106,14 +106,14 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
|
|||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildCancelUrl($input)
|
private function buildCancelUrl($input) : string
|
||||||
{
|
{
|
||||||
$url = $this->client->company->domain . '/client/invoices';
|
$url = $this->client->company->domain . '/client/invoices';
|
||||||
|
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildDescription($input)
|
private function buildDescription($input) : string
|
||||||
{
|
{
|
||||||
$invoice_numbers = "";
|
$invoice_numbers = "";
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildTransactionId($input)
|
private function buildTransactionId($input) : string
|
||||||
{
|
{
|
||||||
return implode(",", $input['hashed_ids']);
|
return implode(",", $input['hashed_ids']);
|
||||||
}
|
}
|
||||||
@ -182,6 +182,5 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
|
|||||||
$payment->transaction_reference = $payment_method;
|
$payment->transaction_reference = $payment_method;
|
||||||
$payment->client_contact_id = $this->getContact();
|
$payment->client_contact_id = $this->getContact();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user