diff --git a/modules/PaypalStandard/Http/Controllers/Payment.php b/modules/PaypalStandard/Http/Controllers/Payment.php index 9e85bcd1b..2cf353ffb 100644 --- a/modules/PaypalStandard/Http/Controllers/Payment.php +++ b/modules/PaypalStandard/Http/Controllers/Payment.php @@ -27,7 +27,7 @@ class Payment extends PaymentController $invoice_url = $this->getInvoiceUrl($invoice); - $html = view('paypal-standard::show', compact('setting', 'document', 'document_url'))->render(); + $html = view('paypal-standard::show', compact('setting', 'invoice', 'invoice_url'))->render(); return response()->json([ 'code' => $setting['code'],