From e8e5a3dc54658eeddad70fc18a7a908e6d2e8727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Esteves?= Date: Fri, 2 Nov 2018 14:26:36 -0300 Subject: [PATCH] add sin link de pago for when import is 0 --- lib/mercado_pago.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mercado_pago.ex b/lib/mercado_pago.ex index c80136d..6629b9b 100644 --- a/lib/mercado_pago.ex +++ b/lib/mercado_pago.ex @@ -32,6 +32,7 @@ defmodule MercadoPago do case req_link(title, description, amount, opts) do {:ok, %HTTPoison.Response{status_code: sc, body: body}} when sc >= 400 and retrying -> IO.inspect body + "Sin link de pago..." {:ok, %HTTPoison.Response{status_code: sc}} when sc >= 400 -> new_token() get_payment_link(title, description, amount, opts ++ [retry: true])