diff --git a/lib/stripe_mock/api/charge.ex b/lib/stripe_mock/api/charge.ex index 0ee120b..0dc45f8 100644 --- a/lib/stripe_mock/api/charge.ex +++ b/lib/stripe_mock/api/charge.ex @@ -69,7 +69,7 @@ defmodule StripeMock.API.Charge do validate_required(changeset, :source_id) {nil, _source_id} -> - case source |> IO.inspect() do + case source do %{card: %{customer_id: nil}} -> changeset _ -> validate_required(changeset, :customer_id) end