### Install YooKassa SDK using easy_install Source: https://github.com/yoomoney/yookassa-sdk-python/blob/master/README.en.md This command installs or upgrades the YooKassa Python SDK using the easy_install tool. Ensure easy_install is installed before running. ```bash easy_install --upgrade yookassa ``` -------------------------------- ### Install YooKassa SDK using pip Source: https://github.com/yoomoney/yookassa-sdk-python/blob/master/README.en.md This command installs or upgrades the YooKassa Python SDK using the pip package manager. Ensure pip is installed before running. ```bash pip install --upgrade yookassa ``` -------------------------------- ### Manually Install YooKassa SDK from source Source: https://github.com/yoomoney/yookassa-sdk-python/blob/master/README.en.md These commands download, extract, and install the YooKassa Python SDK manually from a tarball. This method requires `wget` and `tar`. ```bash wget https://pypi.python.org/packages/5a/be/5eafdfb14aa6f32107e9feb6514ca1ad3fe56f8e5ee59d20693b32f7e79f/yookassa-1.0.0.tar.gz#md5=46595279b5578fd82a199bfd4cd51db2 tar zxf yookassa-1.0.0.tar.gz cd yookassa-1.0.0 python setup.py install ``` -------------------------------- ### YooKassa API Methods Overview Source: https://github.com/yoomoney/yookassa-sdk-python/blob/master/README.en.md This section outlines various functionalities available through the YooKassa API SDK, covering configuration, payment management, and notifications. ```APIDOC YooKassa SDK Settings: - Authentication - Statistics about the environment used - Getting information about the store - Working with Webhook - Incoming notifications Working with payments: - Request to create a payment - Request to create a payment via the builder - Request for partial payment confirmation - Request to cancel an incomplete payment - Get payment information - Get a list of payments with filtering ``` -------------------------------- ### Configure YooKassa Client with Account ID and Secret Key Source: https://github.com/yoomoney/yookassa-sdk-python/blob/master/README.en.md Configures the YooKassa client using the `configure` method or by directly setting `account_id` and `secret_key` properties. This is the standard way to authenticate with the API. ```python from yookassa import Configuration Configuration.configure('', '') ``` ```python from yookassa import Configuration Configuration.account_id = '' Configuration.secret_key = '' ``` -------------------------------- ### Configure YooKassa User Agent for SDK Development Statistics Source: https://github.com/yoomoney/yookassa-sdk-python/blob/master/README.en.md Allows submitting data about the framework, CMS, or module used with the SDK to participate in its development. This helps the SDK team gather statistics. ```python from yookassa import Configuration from yookassa.domain.common.user_agent import Version Configuration.configure('', '') Configuration.configure_user_agent( framework=Version('Django', '2.2.3'), cms=Version('Wagtail', '2.6.2'), module=Version('Y.CMS', '0.0.1') ) ``` -------------------------------- ### Import YooKassa Python module Source: https://github.com/yoomoney/yookassa-sdk-python/blob/master/README.en.md This line imports the main `yookassa` module, making its functionalities available for use in a Python script. ```python import yookassa ``` -------------------------------- ### Configure YooKassa Client with OAuth Token Source: https://github.com/yoomoney/yookassa-sdk-python/blob/master/README.en.md Configures the YooKassa client using an OAuth token for authentication. This method is suitable for scenarios where OAuth is preferred. ```python from yookassa import Configuration Configuration.configure_auth_token('') ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.