
Hi, Habr.
Today, Yandex.Money is launching a new service, which we believe will be of particular interest to habraousers.
Today we open the payment system API.
The Yandex.Money API allows you to use payment functions in your application. And not only passive - viewing the account balance or payment history, but also active - making payments to stores. In fact, you can write your own Yandex.Money interface (if all of a sudden something is missing from ours).
')
API capabilities are not as great as we would like, but this is only the beginning. We hope that the community will take an active part in the development of the product. We will be happy to listen to all your wishes, features and criticism - and we will try to actively develop the API.
The presentation of the technology based on API with the first examples of implementation will be shown on April 22 during the
RIF + CIB 2011 conference in the Yandex.Money tent (in the right side of the main building).
general information
Requests to the API are made via the HTTP 1.1 protocol using SSL (HTTPS), the authorization of requests is done according to the OAuth2-Bearer standard.
The service
response is a JSON document in UTF-8 encoding. The content of the document depends on the result of the query.
Protocol DescriptionApplication Authorization
To authorize the application, OAuth 2.0 is used with specifications:
API methods
Now the API implements the following methods:
- account-info - getting information about the current state of the user's account;
- operation-history - the method allows you to view the history of operations (in whole or in part) in page mode. History records are issued in reverse chronological order;
- operation-details - obtaining detailed information on the operation from the history;
- request-payment - payment request;
- process-payment - payment confirmation.
useful links
We are waiting for your feedback and examples of the implementation of interesting applications.