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
Metadata
Release files for toss 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toss-0.0.4.tar.gz | 7.5 kB | Without provenance | Details for toss-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toss-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for toss-0.0.4-py3-none-any.whl |
Total release size: 16.1 kB
Release files / toss-0.0.4.tar.gz
| Download URL | toss-0.0.4.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60568c044a6eb3d78ea3ed718d4562f6a98bdba7778a2305cc08e9ed65ccfe98
|
|
BLAKE2b-256 checksum How to use checksums |
fe30dfc12a96bf622bbf5f07fe7bde706e46206d59ebd0e72f802e5ffc45f2bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / toss-0.0.4-py3-none-any.whl
| Download URL | toss-0.0.4-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbc86f10051ecb8c17b12a451c7992594f203f373afa6f09cd5c79e95a53db7d
|
|
BLAKE2b-256 checksum How to use checksums |
8eb178ce1f87ed698d55b220fc7962a33d7a245334078252f3d144656b4b1388
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for toss 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.