Skip to content

Commit

Permalink
Merge pull request #3 from nekoding/development
Browse files Browse the repository at this point in the history
chore: fix typo error lang resources
  • Loading branch information
nekoding authored Nov 3, 2022
2 parents 44c3d6c + 721644b commit 28175ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Error/PaymentItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 28175ea

Please sign in to comment.