From f5384f7ed9730de08d989a73e8702750bf26db9c Mon Sep 17 00:00:00 2001 From: ravirocx Date: Wed, 18 Apr 2018 21:11:52 +0530 Subject: [PATCH] deleted redundant variables --- lib/gringotts/gateways/pin_payments.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/gringotts/gateways/pin_payments.ex b/lib/gringotts/gateways/pin_payments.ex index 1b407b63..498df447 100644 --- a/lib/gringotts/gateways/pin_payments.ex +++ b/lib/gringotts/gateways/pin_payments.ex @@ -202,7 +202,7 @@ defmodule Gringotts.Gateways.PinPayments do "Basic #{hash}" end - defp extract_card_token(%{temp_token: token}) do + defp extract_card_token(%{id: token}) do {:ok, token} end @@ -226,7 +226,6 @@ defmodule Gringotts.Gateways.PinPayments do Response.success( id: id, token: token, - temp_token: id, message: message, raw: parsed, status_code: code