All Projects → yoomoney → yookassa-sdk-python

yoomoney / yookassa-sdk-python

Licence: MIT license
Python SDK for YooKassa Payments API

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to yookassa-sdk-python

cms-prestashop
YooKassa payment module for PrestaShop
Stars: ✭ 13 (-58.06%)
Mutual labels:  payments, yookassa
Pay Gateway
pay gateway. support alipay,wechatpay,unionpay,jdpay etc.
Stars: ✭ 247 (+696.77%)
Mutual labels:  payments
Laravel Paddle
Paddle.com API integration for Laravel with support for webhooks/events
Stars: ✭ 132 (+325.81%)
Mutual labels:  payments
Quilt
Hyperledger Quilt - An implementation of the Interledger Protocol
Stars: ✭ 212 (+583.87%)
Mutual labels:  payments
Raiden
Raiden Network
Stars: ✭ 1,825 (+5787.1%)
Mutual labels:  payments
Easyupipayment Android
📱Android Library to implement UPI Payment integration easily in Android App 💳💸
Stars: ✭ 219 (+606.45%)
Mutual labels:  payments
Hanzo.js
🚀 Hanzo JavaScript SDK. Develop cutting-edge decentralized applications.
Stars: ✭ 128 (+312.9%)
Mutual labels:  payments
pos-android-sdk
A selection of APIs and associated samples that enables developers to build applications for different stages of the point of sale journey
Stars: ✭ 18 (-41.94%)
Mutual labels:  payments
Eclair Mobile
An Android wallet for the Lightning Network
Stars: ✭ 231 (+645.16%)
Mutual labels:  payments
Invoiceneko
An Open Sourced Invoice System developed for anyone who needs to generate out an invoice and manage clients
Stars: ✭ 204 (+558.06%)
Mutual labels:  payments
Alipay
Alipay Node.js SDK 基于最新版蚂蚁金服 支付宝开发文档
Stars: ✭ 203 (+554.84%)
Mutual labels:  payments
Offset
Offset payment engine
Stars: ✭ 152 (+390.32%)
Mutual labels:  payments
Ledgersmb
Repository for the LedgerSMB project -- web app for accounting & ERP
Stars: ✭ 222 (+616.13%)
Mutual labels:  payments
Card
💳 make your credit card form better in one line of code
Stars: ✭ 11,365 (+36561.29%)
Mutual labels:  payments
ShareLoginPay
ThirdParty login,share and pay lib
Stars: ✭ 16 (-48.39%)
Mutual labels:  payments
Braintree java
Braintree Java library
Stars: ✭ 129 (+316.13%)
Mutual labels:  payments
Killbill
Open-Source Subscription Billing & Payments Platform
Stars: ✭ 2,396 (+7629.03%)
Mutual labels:  payments
Braintree python
Braintree Python library
Stars: ✭ 217 (+600%)
Mutual labels:  payments
afterpay
PHP Afterpay Integration exposing the Merchant and InStore APIs - Unsupported since April 2021
Stars: ✭ 12 (-61.29%)
Mutual labels:  payments
awesome-bitcoin-cash
Bitcoin Cash projects & resources
Stars: ✭ 28 (-9.68%)
Mutual labels:  payments

YooKassa API Python Client Library

Build Status Latest Stable Version Total Downloads License

Russian | English

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

Требования

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

Установка

C помощью pip

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

С помощью easy_install

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

Вручную

  1. В консоли выполните команды:
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

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

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

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

или

from yookassa import Configuration

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

или через oauth

from yookassa import Configuration

Configuration.configure_auth_token('<Oauth Token>')

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

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')
)
  1. Вызовите нужный метод API. Подробнее в документации к API ЮKassa

Примеры использования SDK

Настройки SDK API ЮKassa

Работа с платежами

Работа с возвратами

Работа с чеками

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].