Skip to main content

Toss payment client library

Project description

toss

Toss 결제를 위한 python client library wrapper (본격 날로 먹기의 꿈)

CircleCI

참고자료

requirements

  • python3
  • strong mentality

install

pip install toss

usage

from toss import TossPayClient

client = TossPayClient() # 아무 값도 없으면 샌드박스

결제 요청

result = client.purchase(
    '주문번호', 1000, '상품설명', 'http://returning .url', False)

결제 정보 가져오기

payment = client.get_payment(result.pay_token)

결제 승인

client.approve(payment.pay_token)

결제 취소

client.cancel(payment.pay_token, '고객 요청으로 취소')

환불

client.refund(payment.token, 1000, 0)

FAQ

왜 이렇게 코드가 엉망인가요?

제가 죽을 죄를 지었습니다. 그러니 https://github.com/styleshare/toss/pulls 굽신굽신

사용하는 게 너무 불편해요.

저도요. 어머 우리 통하는 게 있나봐요. https://github.com/styleshare/toss/pulls 그런 당신을 위해 제가 특별히 마련했습니다.

왜 라이선스가 Public domain 인가요?

저는 FSF를 지지합니다.

toss 개발자들이 욕하지 않을까요?

제가 왜 public domain 했겠어요?

이거 FAQ 맞나요?

눈치가 빠른 꼬맹이는 PR이나 날리라구 https://github.com/styleshare/toss/pulls

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toss-0.0.2a0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

toss-0.0.2a0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file toss-0.0.2a0.tar.gz.

File metadata

  • Download URL: toss-0.0.2a0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for toss-0.0.2a0.tar.gz
Algorithm Hash digest
SHA256 b8142385b99270dfc310f472751dc5116f8228235c86156211fd8c5555527db0
MD5 d2a636c836989b925b525ec809bfb7f2
BLAKE2b-256 ca2a04ff60bfa3fef1790c4144754c19402007ca9dbbcff3776a0641d5db9df4

See more details on using hashes here.

File details

Details for the file toss-0.0.2a0-py3-none-any.whl.

File metadata

  • Download URL: toss-0.0.2a0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for toss-0.0.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb8b06b5ffb1d286d6e84644c42590aa29dc150d9d1026e751b16aacfa936d33
MD5 2eb0120473a82c525800a78f9c673740
BLAKE2b-256 9a5cb88c176ba33b092857147d0121205179a7ca1ffedabe261c44fab271bce0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page