bootpay-backend 2.0.8__tar.gz → 2.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/PKG-INFO +3 -1
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/bootpay_backend/rest_client.py +44 -4
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/bootpay_backend.egg-info/PKG-INFO +3 -1
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/setup.py +1 -1
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/LICENSE +0 -0
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/README.md +0 -0
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/bootpay_backend/__init__.py +0 -0
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/bootpay_backend/bankcode.py +0 -0
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/bootpay_backend.egg-info/SOURCES.txt +0 -0
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/bootpay_backend.egg-info/dependency_links.txt +0 -0
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/bootpay_backend.egg-info/not-zip-safe +0 -0
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/bootpay_backend.egg-info/requires.txt +0 -0
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/bootpay_backend.egg-info/top_level.txt +0 -0
- {bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bootpay-backend
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.9
|
|
4
4
|
Summary: bootpay server side plugin for python
|
|
5
5
|
Home-page: https://github.com/bootpay/backend-python/tree/2-x-development
|
|
6
6
|
Author: bootpay <bootpay.co.kr@gmail.com>
|
|
@@ -25,6 +25,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
25
25
|
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
27
|
License-File: LICENSE
|
|
28
|
+
Requires-Dist: requests>=2.20; python_version >= "3.0"
|
|
29
|
+
Requires-Dist: requests[security]>=2.20; python_version < "3.0"
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
## Bootpay Python Server Side Library
|
|
@@ -8,8 +8,8 @@ class BootpayBackend:
|
|
|
8
8
|
'stage': 'https://stage-api.bootpay.co.kr/v2',
|
|
9
9
|
'production': 'https://api.bootpay.co.kr/v2'
|
|
10
10
|
}
|
|
11
|
-
API_VERSION = '
|
|
12
|
-
SDK_VERSION = '2.0.
|
|
11
|
+
API_VERSION = '5.0.0'
|
|
12
|
+
SDK_VERSION = '2.0.9'
|
|
13
13
|
|
|
14
14
|
def __init__(self, application_id, private_key, mode='production'):
|
|
15
15
|
self.application_id = application_id
|
|
@@ -62,8 +62,9 @@ class BootpayBackend:
|
|
|
62
62
|
# Get Receipt Payment Data
|
|
63
63
|
# Comment by GOSOMI
|
|
64
64
|
# @param receipt_id: string
|
|
65
|
-
def receipt_payment(self, receipt_id=''):
|
|
66
|
-
return self.__request(method='get', url=self.__entrypoints(
|
|
65
|
+
def receipt_payment(self, receipt_id='', lookup_user_data=False):
|
|
66
|
+
return self.__request(method='get', url=self.__entrypoints(
|
|
67
|
+
f'receipt/{receipt_id}?lookup_user_data={lookup_user_data and "true" or "false"}'))
|
|
67
68
|
|
|
68
69
|
# certificate
|
|
69
70
|
# Comment by GOSOMI
|
|
@@ -83,6 +84,14 @@ class BootpayBackend:
|
|
|
83
84
|
def lookup_subscribe_billing_key(self, receipt_id=''):
|
|
84
85
|
return self.__request(method='get', url=self.__entrypoints(f'subscribe/billing_key/{receipt_id}'))
|
|
85
86
|
|
|
87
|
+
|
|
88
|
+
# lookup billing key by billing_key
|
|
89
|
+
# Comment by ehowlsla
|
|
90
|
+
# @param billing_key:string
|
|
91
|
+
def lookup_billing_key(self, billing_key=''):
|
|
92
|
+
return self.__request(method='get', url=self.__entrypoints(f'billing_key/{billing_key}'))
|
|
93
|
+
|
|
94
|
+
|
|
86
95
|
# request subscribe billing key
|
|
87
96
|
# Comment by GOSOMI
|
|
88
97
|
def request_subscribe_billing_key(self, pg='', order_name='', subscription_id='', card_no='', card_pw='',
|
|
@@ -305,3 +314,34 @@ class BootpayBackend:
|
|
|
305
314
|
"receipt_id": receipt_id
|
|
306
315
|
}
|
|
307
316
|
)
|
|
317
|
+
|
|
318
|
+
# 계좌 자동 결제를 위한 빌링키 발급
|
|
319
|
+
def request_subscribe_automatic_transfer_billing_key(self, pg='', order_name='', price=None, tax_free=None, subscription_id='',
|
|
320
|
+
extra=None, user=None, metadata=None, auth_type='ARS', username='',
|
|
321
|
+
bank_name='', bank_account='', identity_no='', cash_receipt_type='소득공제',
|
|
322
|
+
cash_receipt_identity_no=None, phone=''):
|
|
323
|
+
return self.__request(method='post', url=self.__entrypoints('request/subscribe/automatic-transfer'), data={
|
|
324
|
+
"pg": pg,
|
|
325
|
+
"order_name": order_name,
|
|
326
|
+
"subscription_id": subscription_id,
|
|
327
|
+
"price": price,
|
|
328
|
+
"tax_free": tax_free,
|
|
329
|
+
"extra": extra,
|
|
330
|
+
"user": user,
|
|
331
|
+
"metadata": metadata,
|
|
332
|
+
"auth_type": auth_type,
|
|
333
|
+
"username": username,
|
|
334
|
+
"bank_name": bank_name,
|
|
335
|
+
"bank_account": bank_account,
|
|
336
|
+
"identity_no": identity_no,
|
|
337
|
+
"cash_receipt_type": cash_receipt_type,
|
|
338
|
+
"cash_receipt_identity_no": cash_receipt_identity_no,
|
|
339
|
+
"phone": phone,
|
|
340
|
+
})
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
# 출금 동의 확인 요청
|
|
344
|
+
def publish_automatic_transfer_billing_key(self, receipt_id=''):
|
|
345
|
+
return self.__request(method='post', url=self.__entrypoints('request/subscribe/automatic-transfer/publish'), data={
|
|
346
|
+
"receipt_id": receipt_id
|
|
347
|
+
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bootpay-backend
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.9
|
|
4
4
|
Summary: bootpay server side plugin for python
|
|
5
5
|
Home-page: https://github.com/bootpay/backend-python/tree/2-x-development
|
|
6
6
|
Author: bootpay <bootpay.co.kr@gmail.com>
|
|
@@ -25,6 +25,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
25
25
|
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
27
|
License-File: LICENSE
|
|
28
|
+
Requires-Dist: requests>=2.20; python_version >= "3.0"
|
|
29
|
+
Requires-Dist: requests[security]>=2.20; python_version < "3.0"
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
## Bootpay Python Server Side Library
|
|
@@ -9,7 +9,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
|
|
9
9
|
|
|
10
10
|
setuptools.setup(
|
|
11
11
|
name = 'bootpay-backend',
|
|
12
|
-
version = '2.0.
|
|
12
|
+
version = '2.0.9',
|
|
13
13
|
description = 'bootpay server side plugin for python',
|
|
14
14
|
long_description=long_description,
|
|
15
15
|
long_description_content_type='text/markdown',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bootpay-backend-2.0.8 → bootpay_backend-2.0.9}/bootpay_backend.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|