From 1d1f79832ef746148d72184986f60224da39eaf2 Mon Sep 17 00:00:00 2001 From: honkiitong Date: Wed, 16 Nov 2016 16:43:59 +0100 Subject: [PATCH] Removed doubled but faulty grant_type from access_token request method. Version bump to 0.1.3 --- lib/paypal/authentication.ex | 2 +- mix.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/paypal/authentication.ex b/lib/paypal/authentication.ex index bcf6e90..73f6947 100644 --- a/lib/paypal/authentication.ex +++ b/lib/paypal/authentication.ex @@ -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 diff --git a/mix.exs b/mix.exs index 57a07b1..0e6eabf 100644 --- a/mix.exs +++ b/mix.exs @@ -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,