From 78f8cedc80890bfecac72524c53e19f87461df98 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 29 Jul 2024 12:42:53 +1000 Subject: [PATCH] working on paypal AC DC --- app/PaymentDrivers/PayPalPPCPPaymentDriver.php | 4 +--- app/Services/EDocument/Standards/Peppol.php | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/PaymentDrivers/PayPalPPCPPaymentDriver.php b/app/PaymentDrivers/PayPalPPCPPaymentDriver.php index 4cb22ad728b7..8a52fe617a58 100644 --- a/app/PaymentDrivers/PayPalPPCPPaymentDriver.php +++ b/app/PaymentDrivers/PayPalPPCPPaymentDriver.php @@ -128,7 +128,7 @@ class PayPalPPCPPaymentDriver extends PayPalBasePaymentDriver nlog($response); - if($request->has('token') && strlen($request->input('token')) > 2) { + if($request->has('token') && strlen($request->input('token','')) > 2) { return $this->processTokenPayment($request, $response); } @@ -332,8 +332,6 @@ class PayPalPPCPPaymentDriver extends PayPalBasePaymentDriver $orderId = $this->createOrder($data); - // $r = $this->gatewayRequest("/v2/checkout/orders/{$orderId}", 'get', ['body' => '']); - try { $r = $this->gatewayRequest("/v2/checkout/orders/{$orderId}", 'get', ['body' => '']); diff --git a/app/Services/EDocument/Standards/Peppol.php b/app/Services/EDocument/Standards/Peppol.php index 0fe4cf5d18b7..0abd2f2280f4 100644 --- a/app/Services/EDocument/Standards/Peppol.php +++ b/app/Services/EDocument/Standards/Peppol.php @@ -151,8 +151,8 @@ class Peppol extends AbstractService private InvoiceSum | InvoiceSumInclusive $calc; /** - * @param Invoice $invoice - */ + * @param Invoice $invoice + */ public function __construct(public Invoice $invoice, public ?\InvoiceNinja\EInvoice\Models\Peppol\Invoice $p_invoice = null) { $this->p_invoice = $p_invoice ?? new \InvoiceNinja\EInvoice\Models\Peppol\Invoice();