Parameter redirect_uri does not match registered URI

CURLOPT_POSTFIELDS does the urlencoding for you if you pass the data as an array, so you were in fact double-encoding it.

1 Like