fix(ecommerce,tosspayments,pay_kginicis,core): 리베이스 접합부 payment_method string 계약 미전파 회귀 수정
develop 가 확장 결제수단 ID 허용을 위해 OrderPayment.payment_method 의 enum 캐스트를 제거했으나, 리베이스에서 텍스트 충돌이 없던 브랜치 소유 코드 4곳이 enum 전제 그대로 병합되어 string===enum(항상 false)·string 메서드 호출 (fatal)로 잠복했다. 부분취소/환불 재계산 fatal, 무통장 입금완료 현금영수증 자동발급 무동작, 토스 가상계좌 환불 수취계좌 미전송이 이에 해당하며, 전부 develop 기존 관용구(tryFrom/능력 메서드/->value)로 수렴해 해소. IDV getStatus 의 리베이스 잔재 주석(코드와 모순)도 사실에 맞게 정정. 검증: ecommerce 235/235 · tosspayments 19/19 · pay_kginicis 5/5 green, audit --working 0, 활성 반영(module/plugin:update --force) 완료.
This commit is contained in:
1 parent
c9a73e7877
commit
bf3d0d1df5
6 files changed
+12
-18
No files matched your search
@@ -141,7 +141,7 @@ class ApiDocSampleService implements ApiDocSampleSeeder
|
||||
'transaction_id' => self::SAMPLE_TID,
|
||||
'merchant_order_id' => 'MO-'.self::SAMPLE_ORDER_NUMBER,
|
||||
'payment_status' => PaymentStatusEnum::PAID,
|
||||
'payment_method' => PaymentMethodEnum::VBANK,
|
||||
'payment_method' => PaymentMethodEnum::VBANK->value,
|
||||
'is_escrow' => true,
|
||||
'buyer_name' => 'API 문서 샘플 구매자',
|
||||
'buyer_email' => 'apidoc-sample-user@example.com',
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace Plugins\Sirsoft\Tosspayments\Listeners;
|
||||
|
||||
use App\Contracts\Extension\HookListenerInterface;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Modules\Sirsoft\Ecommerce\Enums\PaymentMethodEnum;
|
||||
use Modules\Sirsoft\Ecommerce\Models\Order;
|
||||
use Modules\Sirsoft\Ecommerce\Models\OrderPayment;
|
||||
use Modules\Sirsoft\Ecommerce\Models\OrderRefund;
|
||||
@@ -257,7 +256,7 @@ class PaymentRefundListener implements HookListenerInterface
|
||||
*/
|
||||
private function requiresRefundReceiveAccount(OrderPayment $payment): bool
|
||||
{
|
||||
return $payment->payment_method === PaymentMethodEnum::VBANK;
|
||||
return $payment->isVirtualAccount();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user