Skip to content

Commit

Permalink
remove unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarKarwande committed Dec 18, 2017
1 parent dc2d6ea commit 6d7910e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/kuber_hex/gateways/paymill.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ defmodule Kuber.Hex.Gateways.Paymill do

use Kuber.Hex.Adapter, required_config: [:private_key, :public_key]

@supported_countries ~w(AD AT BE BG CH CY CZ DE DK EE ES FI FO FR GB
GI GR HR HU IE IL IM IS IT LI LT LU LV MC MT
NL NO PL PT RO SE SI SK TR VA)

@supported_cartypes [:visa, :master, :american_express, :diners_club, :discover, :union_pay, :jcb]

@home_page "https://paymill.com"
@money_format :cents
@default_currency "EUR"
Expand Down Expand Up @@ -109,7 +103,7 @@ defmodule Kuber.Hex.Gateways.Paymill do

defp get_currency(options), do: options[:currency] || @default_currency

defp get_amount(options), do: options[:money] || 100
defp get_amount(options), do: options[:money]

defp get_token(response) do
get_in(response, ["transaction", "identification", "uniqueId"])
Expand Down

0 comments on commit 6d7910e

Please sign in to comment.