Coder Social home page Coder Social logo

yandex-checkout-sdk-python's Introduction

Yandex.Checkout API Python Client Library

Build Status Latest Stable Version Total Downloads License

Russian | English

Клиент для работы с платежами по API Яндекс.Кассы Подходит тем, у кого способ подключения к Яндекс.Кассе называется API.

Требования

  1. Python 2.7 or Python 3.x
  2. pip

Установка

C помощью pip

  1. Установите pip.
  2. В консоли выполните команду
pip install --upgrade yandex_checkout

С помощью easy_install

  1. Установите easy_install.
  2. В консоли выполните команду
easy_install --upgrade yandex_checkout

Вручную

  1. В консоли выполните команды:
wget https://pypi.python.org/packages/5a/be/5eafdfb14aa6f32107e9feb6514ca1ad3fe56f8e5ee59d20693b32f7e79f/yandex_checkout-1.0.0.tar.gz#md5=46595279b5578fd82a199bfd4cd51db2
tar zxf yandex_checkout-1.0.0.tar.gz
cd yandex_checkout-1.0.0
python setup.py install

Начало работы

  1. Импортируйте модуль
import yandex_checkout
  1. Установите данные для конфигурации
from yandex_checkout import Configuration

Configuration.configure('<Идентификатор магазина>', '<Секретный ключ>')

или

from yandex_checkout import Configuration

Configuration.account_id = '<Идентификатор магазина>'
Configuration.secret_key = '<Секретный ключ>'

или через oauth

from yandex_checkout import Configuration

Configuration.configure_auth_token('<Oauth Token>')

Если вы согласны участвовать в развитии SDK, вы можете передать данные о вашем фреймворке, cms или модуле:

from yandex_checkout import Configuration
from yandex_checkout.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')
)
  1. Вызовите нужный метод API. Подробнее в документации к API Яндекс.Кассы

yandex-checkout-sdk-python's People

Contributors

alekseyl1992 avatar artemlopatin avatar eightyeight avatar halturin avatar pavel52rus avatar sudoguy avatar tonchik-tm avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.