Skip to content

Commit

Permalink
Removed doubled but faulty grant_type from access_token request method.
Browse files Browse the repository at this point in the history
Version bump to 0.1.3
  • Loading branch information
denic authored and era committed Nov 18, 2016
1 parent fc80eea commit 1d1f798
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/paypal/authentication.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule Paypal.Authentication do

defp request_token do
hackney = [basic_auth: {get_env(:client_id), get_env(:secret)}]
HTTPoison.post(Paypal.Config.url <> "/oauth2/token?grant_type=authorization_code", "grant_type=client_credentials", basic_headers, [ hackney: hackney ])
HTTPoison.post(Paypal.Config.url <> "/oauth2/token", "grant_type=client_credentials", basic_headers, [ hackney: hackney ])
|> Paypal.Config.parse_response
|> parse_token
|> update_token
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Pay.Mixfile do

def project do
[app: :pay,
version: "0.1.2",
version: "0.1.3",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
Expand Down

0 comments on commit 1d1f798

Please sign in to comment.