diff --git a/app/Jobs/Invoice/CreateInvoicePdf.php b/app/Jobs/Invoice/CreateInvoicePdf.php index b85b3309d6c0..acc644594a98 100644 --- a/app/Jobs/Invoice/CreateInvoicePdf.php +++ b/app/Jobs/Invoice/CreateInvoicePdf.php @@ -111,7 +111,7 @@ class CreateInvoicePdf implements ShouldQueue //todo - move this to the client creation stage so we don't keep hitting this unnecessarily Storage::makeDirectory($path, 0775); - info($maker->getCompiledHTML(true)); + //info($maker->getCompiledHTML(true)); $pdf = $this->makePdf(null, null, $maker->getCompiledHTML(true)); diff --git a/app/PaymentDrivers/PayPalExpressPaymentDriver.php b/app/PaymentDrivers/PayPalExpressPaymentDriver.php index 76f6d0a817cc..76b8600efd63 100644 --- a/app/PaymentDrivers/PayPalExpressPaymentDriver.php +++ b/app/PaymentDrivers/PayPalExpressPaymentDriver.php @@ -262,6 +262,13 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver public function createPayment($data, $status = Payment::STATUS_COMPLETED): Payment { + $payment_meta = new \stdClass; + $payment_meta->exp_month = 'xx'; + $payment_meta->exp_year = 'xx'; + $payment_meta->brand = 'PayPal'; + $payment_meta->last4 = 'xxxx'; + $payment_meta->type = GatewayType::PAYPAL; + $payment = parent::createPayment($data, $status); $client_contact = $this->getContact(); @@ -271,6 +278,7 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver $payment->type_id = PaymentType::PAYPAL; $payment->transaction_reference = $data['PAYMENTINFO_0_TRANSACTIONID']; $payment->client_contact_id = $client_contact_id; + $payment->meta = $payment_meta; $payment->save(); return $payment;