add filter hook service.payment.pay.data

This commit is contained in:
Edward Yang 2023-02-20 18:15:58 +08:00
parent fdac7066ed
commit 59bcdb0fda
2 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,9 @@ class PaymentService
'order' => $this->order,
'payment_setting' => plugin_setting($orderPaymentCode),
];
$paymentData = hook_filter('service.payment.pay.data', $paymentData);
$paymentView = view($viewPath, $paymentData)->render();
return view('checkout.payment', ['order' => $this->order, 'payment' => $paymentView]);

View File

@ -6,6 +6,7 @@
"license": "MIT",
"require": {
"php": "^8.0.2",
"ext-curl": "*",
"ext-iconv": "*",
"ext-json": "*",
"ext-pdo": "*",