Skip to content

Commit

Permalink
Get api_base_url from config or else apply default
Browse files Browse the repository at this point in the history
  • Loading branch information
anronin committed Apr 4, 2017
1 parent 5a48cac commit 80ef613
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/stripe.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ defmodule Stripe do
Returns string
"""
def process_url(endpoint) do
"https://api.stripe.com/v1/" <> endpoint
api_base_url = Application.get_env(:stripity_stripe, :api_base_url, "https://api.stripe.com/v1/")
api_base_url <> endpoint
end

@doc """
Expand Down

0 comments on commit 80ef613

Please sign in to comment.