From b33a432d30e230596956560a24c5c49c38107165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC?= Date: Thu, 14 Mar 2019 14:13:13 +0300 Subject: [PATCH] CAPI-341: Decode for empty cvv method (#323) --- apps/capi/src/capi_handler_decoder_invoicing.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/capi/src/capi_handler_decoder_invoicing.erl b/apps/capi/src/capi_handler_decoder_invoicing.erl index b2086a7..0e4981f 100644 --- a/apps/capi/src/capi_handler_decoder_invoicing.erl +++ b/apps/capi/src/capi_handler_decoder_invoicing.erl @@ -329,6 +329,8 @@ decode_payment_methods({value, PaymentMethodRefs}) -> proplists:get_keys(PaymentMethods) ). +decode_payment_method(empty_cvv_bank_card, PaymentSystems) -> + [#{<<"method">> => <<"BankCard">>, <<"paymentSystems">> => lists:map(fun genlib:to_binary/1, PaymentSystems)}]; decode_payment_method(bank_card, PaymentSystems) -> [#{<<"method">> => <<"BankCard">>, <<"paymentSystems">> => lists:map(fun genlib:to_binary/1, PaymentSystems)}]; decode_payment_method(payment_terminal, Providers) ->