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.

Files for toss, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size toss-0.0.4-py3-none-any.whl (8.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size toss-0.0.4.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page