Skip to content

Commit

Permalink
add sin link de pago for when import is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
joeesteves committed Nov 2, 2018
1 parent 895694d commit e8e5a3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mercado_pago.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit e8e5a3d

Please sign in to comment.