diff --git a/lib/gringotts/gateways/authorize_net.ex b/lib/gringotts/gateways/authorize_net.ex index 5affa851..eb53f3e6 100644 --- a/lib/gringotts/gateways/authorize_net.ex +++ b/lib/gringotts/gateways/authorize_net.ex @@ -348,9 +348,9 @@ defmodule Gringotts.Gateways.AuthorizeNet do @spec store(CreditCard.t, Keyword.t) :: tuple def store(card, opts) do request_data = if opts[:customer_profile_id] do - create_customer_payment_profile(card, opts) |> generate + card |> create_customer_payment_profile(opts) |> generate else - create_customer_profile(card, opts) |> generate + card |> create_customer_profile(opts) |> generate end response_data = commit(:post, request_data, opts) respond(response_data)