diff --git a/src/Error/PaymentItem.php b/src/Error/PaymentItem.php index 3ff07a6..4e671e2 100644 --- a/src/Error/PaymentItem.php +++ b/src/Error/PaymentItem.php @@ -13,7 +13,7 @@ public static function parseErrorCode(string $code): string return trans($errorMessage, [], config('laravel-softbank.error_message_locale') ?? 'en'); } - $fallbackErrorMessage = sprintf("laravel-softbank::error_sbpayment_type._.%s", substr($code, 5, 3)); + $fallbackErrorMessage = sprintf("laravel-softbank::error_sbpayment_item._.%s", substr($code, 5, 3)); if (trans($fallbackErrorMessage) != $fallbackErrorMessage) { return trans($fallbackErrorMessage, [], config('laravel-softbank.error_message_locale') ?? 'en');