add filter hook service.payment.pay.data
This commit is contained in:
parent
fdac7066ed
commit
59bcdb0fda
|
|
@ -56,6 +56,9 @@ class PaymentService
|
||||||
'order' => $this->order,
|
'order' => $this->order,
|
||||||
'payment_setting' => plugin_setting($orderPaymentCode),
|
'payment_setting' => plugin_setting($orderPaymentCode),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$paymentData = hook_filter('service.payment.pay.data', $paymentData);
|
||||||
|
|
||||||
$paymentView = view($viewPath, $paymentData)->render();
|
$paymentView = view($viewPath, $paymentData)->render();
|
||||||
|
|
||||||
return view('checkout.payment', ['order' => $this->order, 'payment' => $paymentView]);
|
return view('checkout.payment', ['order' => $this->order, 'payment' => $paymentView]);
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.0.2",
|
"php": "^8.0.2",
|
||||||
|
"ext-curl": "*",
|
||||||
"ext-iconv": "*",
|
"ext-iconv": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue