iZettle / sdk-android

Add card payments from Zettle to your own app
https://developer.zettle.com/docs/android-sdk
24 stars 20 forks source link

json response - code_verifier error #16

Closed real-iot closed 2 years ago

real-iot commented 3 years ago

Expected Behaviour

I am having problems with my PHP for the Oauth2 authentication (Access token fetch)

Current Behaviour

I can get the “code” + “state” in my PHP script – but when I try to fetch the access token from “https://oauth.izettle.com/token” I am getting an error message :

_“json={"error":"invalid_request","error_description":"codeverifier cannot be empty"}”

Steps to Reproduce

I have all the code compiling and building in android studio – that is all good - no modifications to the main code - values are setup in iZettleSDK.gradle (githubAccessToken/clientId/redirectUrlScheme/redirectUrlHost)

Context

Failure Logs

_“json={"error":"invalid_request","error_description":"codeverifier cannot be empty"}”

bobzettle commented 2 years ago

Hi, apologies for not hearing from us. Have you managed to sort this out? The issue will now be closed, but feel free to add a comment if you still need help and we'll get back to you shortly.