CAPI-341: Decode for empty cvv method (#323)

This commit is contained in:
Артем 2019-03-14 14:13:13 +03:00 committed by GitHub
parent b92b8ba9a3
commit b33a432d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,6 +329,8 @@ decode_payment_methods({value, PaymentMethodRefs}) ->
proplists:get_keys(PaymentMethods) 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) -> decode_payment_method(bank_card, PaymentSystems) ->
[#{<<"method">> => <<"BankCard">>, <<"paymentSystems">> => lists:map(fun genlib:to_binary/1, PaymentSystems)}]; [#{<<"method">> => <<"BankCard">>, <<"paymentSystems">> => lists:map(fun genlib:to_binary/1, PaymentSystems)}];
decode_payment_method(payment_terminal, Providers) -> decode_payment_method(payment_terminal, Providers) ->