mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 14:14:36 -04:00
Minor fixes for PayPal
This commit is contained in:
parent
f98319a1c1
commit
d909b4939c
@ -111,7 +111,7 @@ class CreateInvoicePdf implements ShouldQueue
|
|||||||
//todo - move this to the client creation stage so we don't keep hitting this unnecessarily
|
//todo - move this to the client creation stage so we don't keep hitting this unnecessarily
|
||||||
Storage::makeDirectory($path, 0775);
|
Storage::makeDirectory($path, 0775);
|
||||||
|
|
||||||
info($maker->getCompiledHTML(true));
|
//info($maker->getCompiledHTML(true));
|
||||||
|
|
||||||
$pdf = $this->makePdf(null, null, $maker->getCompiledHTML(true));
|
$pdf = $this->makePdf(null, null, $maker->getCompiledHTML(true));
|
||||||
|
|
||||||
|
@ -262,6 +262,13 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
|
|||||||
|
|
||||||
public function createPayment($data, $status = Payment::STATUS_COMPLETED): Payment
|
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);
|
$payment = parent::createPayment($data, $status);
|
||||||
|
|
||||||
$client_contact = $this->getContact();
|
$client_contact = $this->getContact();
|
||||||
@ -271,6 +278,7 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
|
|||||||
$payment->type_id = PaymentType::PAYPAL;
|
$payment->type_id = PaymentType::PAYPAL;
|
||||||
$payment->transaction_reference = $data['PAYMENTINFO_0_TRANSACTIONID'];
|
$payment->transaction_reference = $data['PAYMENTINFO_0_TRANSACTIONID'];
|
||||||
$payment->client_contact_id = $client_contact_id;
|
$payment->client_contact_id = $client_contact_id;
|
||||||
|
$payment->meta = $payment_meta;
|
||||||
$payment->save();
|
$payment->save();
|
||||||
|
|
||||||
return $payment;
|
return $payment;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user