Answer the question
In order to leave comments, you need to log in
Invalid_request Yandex Money?
https://github.com/yandex-money/yandex-money-sdk-php
This API implementation has a method
API::buildObtainTokenUrl($client_id, $redirect_uri, $scope);
$scope = array('account-info', 'money-source("wallet","card")', 'payment.to-account("'.ACCOUNT.'","account").limit('.$_POST['limit_time'].','.$_POST['limit'].')');
$auth_url = API::buildObtainTokenUrl(CLIENT_ID, REDIRECT_URI, $scope);
Answer the question
In order to leave comments, you need to log in
"The Redirect URI in the application settings and the Redirect URI in the request must be the same." - this is true, but also to everything where you have escaped quotes: money-source("wallet","card"), etc.? Here is what Yandex.Money advises about this:
...there may be characters that violate the syntax of scope , for example, a double quote.
For such characters, backslash escaping should be used according to the JSON format. For example: \"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question