Skip to content

Commit 4d69e73

Browse files
committed
Adds debug logging for invalid card error
1 parent 499f094 commit 4d69e73

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/wapi/src/wapi_payres_handler.erl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,11 @@ validate_card_data(CardData, ExtraCardData, SessionData, PaymentSystem, WoodyCon
217217
case bankcard_validator:validate(BankCardData, PaymentSystem, ValidationEnv, WoodyContext) of
218218
ok ->
219219
ok;
220-
{error, _Error} ->
220+
{error, Error} ->
221+
%% FIXME/DEBUG Remove this log line
222+
ok = logger:warning("Invalid card ~p, payment system ~p, extras ~p, error: ~p", [
223+
CardData, PaymentSystem, ExtraCardData, Error
224+
]),
221225
wapi_handler:throw_result(
222226
wapi_handler_utils:reply_ok(
223227
422,

0 commit comments

Comments
 (0)