dana-python 0.1.0__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.
- dana_python-0.1.0/LICENSE +187 -0
- dana_python-0.1.0/PKG-INFO +148 -0
- dana_python-0.1.0/README.md +46 -0
- dana_python-0.1.0/dana/__init__.py +14 -0
- dana_python-0.1.0/dana/api_client.py +818 -0
- dana_python-0.1.0/dana/api_response.py +35 -0
- dana_python-0.1.0/dana/base/__init__.py +14 -0
- dana_python-0.1.0/dana/base/configuration.py +582 -0
- dana_python-0.1.0/dana/base/model.py +43 -0
- dana_python-0.1.0/dana/base/types.py +17 -0
- dana_python-0.1.0/dana/exceptions.py +227 -0
- dana_python-0.1.0/dana/payment_gateway/__init__.py +14 -0
- dana_python-0.1.0/dana/payment_gateway/v1/__init__.py +45 -0
- dana_python-0.1.0/dana/payment_gateway/v1/api/__init__.py +19 -0
- dana_python-0.1.0/dana/payment_gateway/v1/api/payment_gateway_api.py +343 -0
- dana_python-0.1.0/dana/payment_gateway/v1/enum.py +59 -0
- dana_python-0.1.0/dana/payment_gateway/v1/models/__init__.py +38 -0
- dana_python-0.1.0/dana/payment_gateway/v1/models/buyer.py +113 -0
- dana_python-0.1.0/dana/payment_gateway/v1/models/consult_pay_request.py +119 -0
- dana_python-0.1.0/dana/payment_gateway/v1/models/consult_pay_request_additional_info.py +119 -0
- dana_python-0.1.0/dana/payment_gateway/v1/models/consult_pay_request_amount.py +109 -0
- dana_python-0.1.0/dana/payment_gateway/v1/models/consult_pay_response.py +119 -0
- dana_python-0.1.0/dana/payment_gateway/v1/models/env_info.py +152 -0
- dana_python-0.1.0/dana/payment_gateway/v1/models/payment_info.py +136 -0
- dana_python-0.1.0/dana/payment_gateway/v1/models/promo_info.py +115 -0
- dana_python-0.1.0/dana/rest.py +269 -0
- dana_python-0.1.0/dana/utils/models.py +48 -0
- dana_python-0.1.0/dana/utils/script.py +53 -0
- dana_python-0.1.0/dana/utils/snap_configuration.py +644 -0
- dana_python-0.1.0/dana/utils/snap_header.py +111 -0
- dana_python-0.1.0/dana_python.egg-info/PKG-INFO +148 -0
- dana_python-0.1.0/dana_python.egg-info/SOURCES.txt +37 -0
- dana_python-0.1.0/dana_python.egg-info/dependency_links.txt +1 -0
- dana_python-0.1.0/dana_python.egg-info/requires.txt +10 -0
- dana_python-0.1.0/dana_python.egg-info/top_level.txt +1 -0
- dana_python-0.1.0/docs/PaymentGatewayApi.md +77 -0
- dana_python-0.1.0/pyproject.toml +113 -0
- dana_python-0.1.0/setup.cfg +4 -0
- dana_python-0.1.0/tests/test_payment_gateway_api.py +47 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction, and
|
|
10
|
+
distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright
|
|
13
|
+
owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities
|
|
16
|
+
that control, are controlled by, or are under common control with that entity.
|
|
17
|
+
For the purposes of this definition, "control" means (i) the power, direct or
|
|
18
|
+
indirect, to cause the direction or management of such entity, whether by
|
|
19
|
+
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
20
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
21
|
+
|
|
22
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
23
|
+
permissions granted by this License.
|
|
24
|
+
|
|
25
|
+
"Source" form shall mean the preferred form for making modifications, including
|
|
26
|
+
but not limited to software source code, documentation source, and configuration
|
|
27
|
+
files.
|
|
28
|
+
|
|
29
|
+
"Object" form shall mean any form resulting from mechanical transformation or
|
|
30
|
+
translation of a Source form, including but not limited to compiled object code,
|
|
31
|
+
generated documentation, and conversions to other media types.
|
|
32
|
+
|
|
33
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made
|
|
34
|
+
available under the License, as indicated by a copyright notice that is included
|
|
35
|
+
in or attached to the work (an example is provided in the Appendix below).
|
|
36
|
+
|
|
37
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that
|
|
38
|
+
is based on (or derived from) the Work and for which the editorial revisions,
|
|
39
|
+
annotations, elaborations, or other modifications represent, as a whole, an
|
|
40
|
+
original work of authorship. For the purposes of this License, Derivative Works
|
|
41
|
+
shall not include works that remain separable from, or merely link (or bind by
|
|
42
|
+
name) to the interfaces of, the Work and Derivative Works thereof.
|
|
43
|
+
|
|
44
|
+
"Contribution" shall mean any work of authorship, including the original version
|
|
45
|
+
of the Work and any modifications or additions to that Work or Derivative Works
|
|
46
|
+
thereof, that is intentionally submitted to Licensor for inclusion in the Work
|
|
47
|
+
by the copyright owner or by an individual or Legal Entity authorized to submit
|
|
48
|
+
on behalf of the copyright owner.
|
|
49
|
+
|
|
50
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
|
|
51
|
+
of whom a Contribution has been received by Licensor and subsequently
|
|
52
|
+
incorporated within the Work.
|
|
53
|
+
|
|
54
|
+
2. Grant of Copyright License.
|
|
55
|
+
|
|
56
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
57
|
+
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
58
|
+
irrevocable copyright license to reproduce, prepare Derivative Works of,
|
|
59
|
+
publicly display, publicly perform, sublicense, and distribute the Work and such
|
|
60
|
+
Derivative Works in Source or Object form.
|
|
61
|
+
|
|
62
|
+
3. Grant of Patent License.
|
|
63
|
+
|
|
64
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
65
|
+
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
66
|
+
irrevocable (except as stated in this section) patent license to make, have
|
|
67
|
+
made, use, offer to sell, sell, import, and otherwise transfer the Work, where
|
|
68
|
+
such license applies only to those patent claims licensable by such Contributor
|
|
69
|
+
that are necessarily infringed by their Contribution(s) alone or by combination
|
|
70
|
+
of their Contribution(s) with the Work to which such Contribution(s) was
|
|
71
|
+
submitted. If You institute patent litigation against any entity (including a
|
|
72
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work or a
|
|
73
|
+
Contribution incorporated within the Work constitutes direct or contributory
|
|
74
|
+
patent infringement, then any patent licenses granted to You under this License
|
|
75
|
+
for that Work shall terminate as of the date such litigation is filed.
|
|
76
|
+
|
|
77
|
+
4. Redistribution.
|
|
78
|
+
|
|
79
|
+
You may reproduce and distribute copies of the Work or Derivative Works thereof
|
|
80
|
+
in any medium, with or without modifications, and in Source or Object form,
|
|
81
|
+
provided that You meet the following conditions:
|
|
82
|
+
|
|
83
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy of
|
|
84
|
+
this License; and
|
|
85
|
+
|
|
86
|
+
(b) You must cause any modified files to carry prominent notices stating that
|
|
87
|
+
You changed the files; and
|
|
88
|
+
|
|
89
|
+
(c) You must retain, in the Source form of any Derivative Works that You
|
|
90
|
+
distribute, all copyright, patent, trademark, and attribution notices from
|
|
91
|
+
the Source form of the Work, excluding those notices that do not pertain to
|
|
92
|
+
any part of the Derivative Works; and
|
|
93
|
+
|
|
94
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then
|
|
95
|
+
any Derivative Works that You distribute must include a readable copy of the
|
|
96
|
+
attribution notices contained within such NOTICE file, excluding those
|
|
97
|
+
notices that do not pertain to any part of the Derivative Works, in at least
|
|
98
|
+
one of the following places: within a NOTICE text file distributed as part
|
|
99
|
+
of the Derivative Works; within the Source form or documentation, if
|
|
100
|
+
provided along with the Derivative Works; or, within a display generated by
|
|
101
|
+
the Derivative Works, if and wherever such third-party notices normally
|
|
102
|
+
appear. The contents of the NOTICE file are for informational purposes only
|
|
103
|
+
and do not modify the License. You may add Your own attribution notices
|
|
104
|
+
within Derivative Works that You distribute, alongside or as an addendum to
|
|
105
|
+
the NOTICE text from the Work, provided that such additional attribution
|
|
106
|
+
notices cannot be construed as modifying the License.
|
|
107
|
+
|
|
108
|
+
You may add Your own copyright statement to Your modifications and may provide
|
|
109
|
+
additional or different license terms and conditions for use, reproduction, or
|
|
110
|
+
distribution of Your modifications, or for any such Derivative Works as a whole,
|
|
111
|
+
provided Your use, reproduction, and distribution of the Work otherwise complies
|
|
112
|
+
with the conditions stated in this License.
|
|
113
|
+
|
|
114
|
+
5. Submission of Contributions.
|
|
115
|
+
|
|
116
|
+
Unless You explicitly state otherwise, any Contribution intentionally submitted
|
|
117
|
+
for inclusion in the Work by You to the Licensor shall be under the terms and
|
|
118
|
+
conditions of this License, without any additional terms or conditions.
|
|
119
|
+
Notwithstanding the above, nothing herein shall supersede or modify the terms of
|
|
120
|
+
any separate license agreement you may have executed with Licensor regarding
|
|
121
|
+
such Contributions.
|
|
122
|
+
|
|
123
|
+
6. Trademarks.
|
|
124
|
+
|
|
125
|
+
This License does not grant permission to use the trade names, trademarks,
|
|
126
|
+
service marks, or product names of the Licensor, except as required for
|
|
127
|
+
describing the origin of the Work and reproducing the content of the NOTICE
|
|
128
|
+
file.
|
|
129
|
+
|
|
130
|
+
7. Disclaimer of Warranty.
|
|
131
|
+
|
|
132
|
+
Unless required by applicable law or agreed to in writing, Licensor provides the
|
|
133
|
+
Work (and each Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
134
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
|
|
135
|
+
including, without limitation, any warranties or conditions of TITLE,
|
|
136
|
+
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
|
|
137
|
+
solely responsible for determining the appropriateness of using or
|
|
138
|
+
redistributing the Work and assume any risks associated with Your exercise of
|
|
139
|
+
permissions under this License.
|
|
140
|
+
|
|
141
|
+
8. Limitation of Liability.
|
|
142
|
+
|
|
143
|
+
In no event and under no legal theory, whether in tort (including negligence),
|
|
144
|
+
contract, or otherwise, unless required by applicable law (such as deliberate
|
|
145
|
+
and grossly negligent acts) or agreed to in writing, shall any Contributor be
|
|
146
|
+
liable to You for damages, including any direct, indirect, special, incidental,
|
|
147
|
+
or consequential damages of any character arising as a result of this License or
|
|
148
|
+
out of the use or inability to use the Work (including but not limited to
|
|
149
|
+
damages for loss of goodwill, work stoppage, computer failure or malfunction, or
|
|
150
|
+
any and all other commercial damages or losses), even if such Contributor has
|
|
151
|
+
been advised of the possibility of such damages.
|
|
152
|
+
|
|
153
|
+
9. Accepting Warranty or Additional Liability.
|
|
154
|
+
|
|
155
|
+
While redistributing the Work or Derivative Works thereof, You may choose to
|
|
156
|
+
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
|
|
157
|
+
other liability obligations and/or rights consistent with this License. However,
|
|
158
|
+
in accepting such obligations, You may act only on Your own behalf and on Your
|
|
159
|
+
sole responsibility, not on behalf of any other Contributor, and only if You
|
|
160
|
+
agree to indemnify, defend, and hold each Contributor harmless for any liability
|
|
161
|
+
incurred by, or claims asserted against, such Contributor by reason of your
|
|
162
|
+
accepting any such warranty or additional liability.
|
|
163
|
+
|
|
164
|
+
END OF TERMS AND CONDITIONS
|
|
165
|
+
|
|
166
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
167
|
+
|
|
168
|
+
To apply the Apache License to your work, attach the following boilerplate notice,
|
|
169
|
+
with the fields enclosed by brackets "[]" replaced with your own identifying
|
|
170
|
+
information. (Don't include the brackets!) The text should be enclosed in the
|
|
171
|
+
appropriate comment syntax for the file format. We also recommend that a file or
|
|
172
|
+
class name and description of purpose be included on the same "printed page" as
|
|
173
|
+
the license notice for easier identification within third-party archives.
|
|
174
|
+
|
|
175
|
+
Copyright [yyyy] [name of copyright owner]
|
|
176
|
+
|
|
177
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
178
|
+
you may not use this file except in compliance with the License.
|
|
179
|
+
You may obtain a copy of the License at
|
|
180
|
+
|
|
181
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
182
|
+
|
|
183
|
+
Unless required by applicable law or agreed to in writing, software
|
|
184
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
185
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
186
|
+
See the License for the specific language governing permissions and
|
|
187
|
+
limitations under the License.
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dana-python
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: API Client (SDK) for DANA APIs based on https://dashboard.dana.id/api-docs
|
|
5
|
+
Author-email: DANA Automation Team <automation@dana.id>, Rangga Putra Pertama <rangga.putra@dana.id>
|
|
6
|
+
Maintainer-email: DANA Automation Team <automation@dana.id>, Rangga Putra Pertama <rangga.putra@dana.id>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
Project-URL: homepage, https://dashboard.dana.id/api-docs
|
|
9
|
+
Keywords: DANA,DANA ID Docs,DANA SDK
|
|
10
|
+
Requires-Python: >3.9.1
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: annotated-types==0.7.0
|
|
14
|
+
Requires-Dist: cffi==1.17.1
|
|
15
|
+
Requires-Dist: cryptography==44.0.2
|
|
16
|
+
Requires-Dist: pycparser==2.22
|
|
17
|
+
Requires-Dist: pydantic==2.10.6
|
|
18
|
+
Requires-Dist: pydantic_core==2.27.2
|
|
19
|
+
Requires-Dist: python-dateutil==2.9.0.post0
|
|
20
|
+
Requires-Dist: six==1.17.0
|
|
21
|
+
Requires-Dist: typing_extensions==4.12.2
|
|
22
|
+
Requires-Dist: urllib3==2.3.0
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# dana
|
|
26
|
+
SDK for DANA API (https://dashboard.dana.id/api-docs)
|
|
27
|
+
|
|
28
|
+
## Requirements.
|
|
29
|
+
|
|
30
|
+
Python 3.9.1+
|
|
31
|
+
|
|
32
|
+
## Installation & Usage
|
|
33
|
+
### pip install
|
|
34
|
+
|
|
35
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
39
|
+
```
|
|
40
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
41
|
+
|
|
42
|
+
Then import the package:
|
|
43
|
+
```python
|
|
44
|
+
import dana.payment_gateway.v1
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Setuptools
|
|
48
|
+
|
|
49
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
python setup.py install --user
|
|
53
|
+
```
|
|
54
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
55
|
+
|
|
56
|
+
Then import the package:
|
|
57
|
+
```python
|
|
58
|
+
import dana.payment_gateway.v1
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Getting Started
|
|
62
|
+
|
|
63
|
+
Please follow the [installation procedure](#installation--usage) and then go to documentation per API you wanna use:
|
|
64
|
+
|
|
65
|
+
## Documentation for API Endpoints
|
|
66
|
+
|
|
67
|
+
API | Description
|
|
68
|
+
------------- | -------------
|
|
69
|
+
[**PaymentGatewayApi**](docs/payment_gateway/v1/PaymentGatewayApi.md) | API for doing operations in DANA Payment Gateway (Gapura)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
# PaymentGatewayApi
|
|
73
|
+
|
|
74
|
+
All URIs are relative to http://api.sandbox.dana.id for sandbox environment
|
|
75
|
+
|
|
76
|
+
Method | HTTP request | Description
|
|
77
|
+
------------- | ------------- | -------------
|
|
78
|
+
[**consult_pay**](PaymentGatewayApi.md#consult_pay) | **POST** /v1.0/payment-gateway/consult-pay.htm | Consult Pay API
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# **consult_pay**
|
|
82
|
+
> consult_pay(consult_pay_request) -> ConsultPayResponse
|
|
83
|
+
|
|
84
|
+
Consult Pay API
|
|
85
|
+
|
|
86
|
+
This API is used to consult the list of payment methods or payment channels that user has and used in certain transactions or orders
|
|
87
|
+
|
|
88
|
+
### Example
|
|
89
|
+
You have to set env variables below (for PRIVATE_KEY and PRIVATE_KEY_PATH you have to choose one)
|
|
90
|
+
* ORIGIN
|
|
91
|
+
* X_PARTNER_ID
|
|
92
|
+
* CHANNEL_ID
|
|
93
|
+
* PRIVATE_KEY
|
|
94
|
+
* PRIVATE_KEY_PATH
|
|
95
|
+
* ENV
|
|
96
|
+
|
|
97
|
+
```python
|
|
98
|
+
from dana_python.utils.snap_configuration import SnapConfiguration, AuthSettings, Env
|
|
99
|
+
from dana_python.payment_gateway.payment_gateway.models.consult_pay_request import ConsultPayRequest
|
|
100
|
+
from dana_python.payment_gateway.payment_gateway.models.consult_pay_response import ConsultPayResponse
|
|
101
|
+
from dana_python.api_client import ApiClient
|
|
102
|
+
from dana_python.rest import ApiException
|
|
103
|
+
from pprint import pprint
|
|
104
|
+
|
|
105
|
+
configuration = SnapConfiguration(
|
|
106
|
+
api_key=AuthSettings(
|
|
107
|
+
PRIVATE_KEY=os.environ.get("PRIVATE_KEY"),
|
|
108
|
+
ORIGIN=os.environ.get("ORIGIN"),
|
|
109
|
+
X_PARTNER_ID=os.environ.get("X_PARTNER_ID"),
|
|
110
|
+
CHANNEL_ID=os.environ.get("CHANNEL_ID"),
|
|
111
|
+
ENV=Env.SANDBOX
|
|
112
|
+
)
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
with ApiClient(configuration) as api_client:
|
|
117
|
+
api_instance = dana_python.payment_gateway.payment_gateway.PaymentGatewayApi(api_client)
|
|
118
|
+
consult_pay_request = dana_python.payment_gateway.payment_gateway.ConsultPayRequest()
|
|
119
|
+
|
|
120
|
+
try:
|
|
121
|
+
api_response = api_instance.consult_pay(consult_pay_request)
|
|
122
|
+
print("The response of PaymentGatewayApi->consult_pay:\n")
|
|
123
|
+
pprint(api_response)
|
|
124
|
+
except Exception as e:
|
|
125
|
+
print("Exception when calling PaymentGatewayApi->consult_pay: %s\n" % e)
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Parameters
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
Name | Type | Description | Notes
|
|
134
|
+
------------- | ------------- | ------------- | -------------
|
|
135
|
+
**consult_pay_request** | [**ConsultPayRequest**](ConsultPayRequest.md)| |
|
|
136
|
+
|
|
137
|
+
### Return type
|
|
138
|
+
|
|
139
|
+
[**ConsultPayResponse**](ConsultPayResponse.md)
|
|
140
|
+
|
|
141
|
+
### HTTP response details
|
|
142
|
+
|
|
143
|
+
| Status code | Description | Response headers |
|
|
144
|
+
|-------------|-------------|------------------|
|
|
145
|
+
**200** | Payment consultation request sent | - |
|
|
146
|
+
|
|
147
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
148
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# dana
|
|
2
|
+
SDK for DANA API (https://dashboard.dana.id/api-docs)
|
|
3
|
+
|
|
4
|
+
## Requirements.
|
|
5
|
+
|
|
6
|
+
Python 3.9.1+
|
|
7
|
+
|
|
8
|
+
## Installation & Usage
|
|
9
|
+
### pip install
|
|
10
|
+
|
|
11
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
15
|
+
```
|
|
16
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
17
|
+
|
|
18
|
+
Then import the package:
|
|
19
|
+
```python
|
|
20
|
+
import dana.payment_gateway.v1
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Setuptools
|
|
24
|
+
|
|
25
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
python setup.py install --user
|
|
29
|
+
```
|
|
30
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
31
|
+
|
|
32
|
+
Then import the package:
|
|
33
|
+
```python
|
|
34
|
+
import dana.payment_gateway.v1
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Getting Started
|
|
38
|
+
|
|
39
|
+
Please follow the [installation procedure](#installation--usage) and then go to documentation per API you wanna use:
|
|
40
|
+
|
|
41
|
+
## Documentation for API Endpoints
|
|
42
|
+
|
|
43
|
+
API | Description
|
|
44
|
+
------------- | -------------
|
|
45
|
+
[**PaymentGatewayApi**](docs/payment_gateway/v1/PaymentGatewayApi.md) | API for doing operations in DANA Payment Gateway (Gapura)
|
|
46
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Copyright 2025 PT Espay Debit Indonesia Koe
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|