From de3f3ad09706ded2098f8ddac5d651a8c70db234 Mon Sep 17 00:00:00 2001 From: Subham Date: Wed, 25 Apr 2018 03:02:55 +0530 Subject: [PATCH] Add files via upload --- lib/gringotts/gateways/mercadopago.ex | 1 + test/integration/gateways/mercadopago_test.exs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/gringotts/gateways/mercadopago.ex b/lib/gringotts/gateways/mercadopago.ex index 99e581bc..653a608c 100644 --- a/lib/gringotts/gateways/mercadopago.ex +++ b/lib/gringotts/gateways/mercadopago.ex @@ -235,6 +235,7 @@ defmodule Gringotts.Gateways.Mercadopago do defp create_token(%CreditCard{} = card, opts) do url_params = [public_key: opts[:config][:public_key]] + body = card |> token_params() diff --git a/test/integration/gateways/mercadopago_test.exs b/test/integration/gateways/mercadopago_test.exs index 4fda9b9e..6c9779e2 100644 --- a/test/integration/gateways/mercadopago_test.exs +++ b/test/integration/gateways/mercadopago_test.exs @@ -1,5 +1,5 @@ defmodule Gringotts.Integration.Gateways.MercadopagoTest do - # Integration tests for the Mercadopago + # Integration tests for the Mercadopago use ExUnit.Case, async: false use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney @@ -28,6 +28,7 @@ defmodule Gringotts.Integration.Gateways.MercadopagoTest do order_id: 123_126, customer_id: "311211654-YrXF6J0QikpIWX", config: @config, + order_type: "mercadopago", installments: 1 ]