Skip to content

Commit

Permalink
Capture completed
Browse files Browse the repository at this point in the history
  • Loading branch information
subpal authored and oyeb committed Apr 25, 2018
1 parent 1123360 commit 82b93af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/gringotts/gateways/mercadopago.ex
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,10 @@ defmodule Gringotts.Gateways.Mercadopago do

defp create_token(%CreditCard{} = card, opts) do
url_params = [public_key: opts[:config][:public_key]]
body = Poison.encode!(token_params(card))
body =
card
|> token_params()
|> Poison.encode!()

{state, res} =
commit(:post, "/v1/card_tokens/#{opts[:customer_id]}", body, opts, params: url_params)
Expand Down

0 comments on commit 82b93af

Please sign in to comment.