Toss payment client library
Project description
toss
Toss 결제를 위한 python client library wrapper (본격 날로 먹기의 꿈)
참고자료
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toss-0.0.4.tar.gz.
File metadata
- Download URL: toss-0.0.4.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60568c044a6eb3d78ea3ed718d4562f6a98bdba7778a2305cc08e9ed65ccfe98
|
|
| MD5 |
ab5b58dab30f4fe59064ab003ec5f286
|
|
| BLAKE2b-256 |
fe30dfc12a96bf622bbf5f07fe7bde706e46206d59ebd0e72f802e5ffc45f2bd
|
File details
Details for the file toss-0.0.4-py3-none-any.whl.
File metadata
- Download URL: toss-0.0.4-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbc86f10051ecb8c17b12a451c7992594f203f373afa6f09cd5c79e95a53db7d
|
|
| MD5 |
584c0fb81536a3667563ff627be331ff
|
|
| BLAKE2b-256 |
8eb178ce1f87ed698d55b220fc7962a33d7a245334078252f3d144656b4b1388
|