Skip to content

Commit 5669843

Browse files
author
정경업
committed
비인증 결제 설명 추가
1 parent ac032c2 commit 5669843

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

README.rst

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Python 사용자를 위한 아임포트 REST API 연동 모듈입니다.
2727
1. 결제 정보 찾기
2828
2. 가격 확인
2929
3. 취소
30+
4. 비 인증 결제
3031

3132

3233
사용법
@@ -101,14 +102,42 @@ Python 사용자를 위한 아임포트 REST API 연동 모듈입니다.
101102
print e.message # 에러난 이유를 알 수 있음
102103
103104
105+
비인증 결제
106+
-------------
107+
108+
1회성 비인증 결제를 진행합니다.
109+
110+
.. code-block:: python
111+
112+
# 테스트용 값
113+
payload = {
114+
'merchant_uid': '00000000',
115+
'amount': 5000,
116+
'card_number': '4092-0230-1234-1234',
117+
'expiry': '2019-03',
118+
'birth': '500203',
119+
'pwd_2digit': '19'
120+
}
121+
try:
122+
response = iamport.pay_onetime(**payload)
123+
except KeyError:
124+
# 필수 값이 없을때 에러 처리
125+
pass
126+
except Iamport.ResponseError as e:
127+
# 응답 에러 처리
128+
pass
129+
130+
131+
104132
기여
105133
======
106134
- 파이썬 3 지원, 테스트: `dahlia <https://github.com/dahlia>`_ `#4 <https://github.com/iamport/iamport-rest-client-python/pull/4>`_
135+
- 비인증 결제(onetime) 지원: `psy2848048 <https://github.com/psy2848048>`_ `#8 <https://github.com/iamport/iamport-rest-client-python/pull/8>`_
107136

108137

109138
할 일
110139
======
111140
- 결제 목록 읽기
112-
- 비 인증 결제 지원
141+
- 비인증 결제 세부 기능 지원
113142
- 문서화
114143
- 기타 등등

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def readme():
1111

1212
setup(
1313
name='iamport-rest-client',
14-
version='0.2.2',
14+
version='0.3.0',
1515
packages=find_packages(),
1616
include_package_data=True,
1717
install_requires=install_requires,

0 commit comments

Comments
 (0)