ezbilling 0.2.0__tar.gz → 0.3.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.
- {ezbilling-0.2.0/ezbilling.egg-info → ezbilling-0.3.0}/PKG-INFO +2 -2
- ezbilling-0.3.0/ezbilling/payment_gateway.py +19 -0
- {ezbilling-0.2.0 → ezbilling-0.3.0/ezbilling.egg-info}/PKG-INFO +2 -2
- {ezbilling-0.2.0 → ezbilling-0.3.0}/pyproject.toml +2 -2
- {ezbilling-0.2.0 → ezbilling-0.3.0}/setup.py +4 -0
- ezbilling-0.2.0/ezbilling/payment_gateway.py +0 -5
- {ezbilling-0.2.0 → ezbilling-0.3.0}/LICENSE +0 -0
- {ezbilling-0.2.0 → ezbilling-0.3.0}/MANIFEST.in +0 -0
- {ezbilling-0.2.0 → ezbilling-0.3.0}/README.md +0 -0
- {ezbilling-0.2.0 → ezbilling-0.3.0}/ezbilling/__init__.py +0 -0
- {ezbilling-0.2.0 → ezbilling-0.3.0}/ezbilling.egg-info/SOURCES.txt +0 -0
- {ezbilling-0.2.0 → ezbilling-0.3.0}/ezbilling.egg-info/dependency_links.txt +0 -0
- {ezbilling-0.2.0 → ezbilling-0.3.0}/ezbilling.egg-info/top_level.txt +0 -0
- {ezbilling-0.2.0 → ezbilling-0.3.0}/setup.cfg +0 -0
@@ -1,10 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ezbilling
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.3.0
|
4
4
|
Summary: A small Python package that says hello.
|
5
5
|
Home-page: https://github.com/Ezbillpay
|
6
6
|
Author: Nithesh
|
7
|
-
Author-email:
|
7
|
+
Author-email: Nithesh <nithish@dreaminfinity.in>
|
8
8
|
License: MIT
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import requests
|
2
|
+
|
3
|
+
def hello(name):
|
4
|
+
return f"Hello, {name}!"
|
5
|
+
|
6
|
+
def paymentLink(key, secret, payload):
|
7
|
+
url = "https://tycheextdev.ezbillpay.in/paymentLink"
|
8
|
+
headers = {
|
9
|
+
"API-Key": key,
|
10
|
+
"API-Secret": secret,
|
11
|
+
"Content-Type": "application/json"
|
12
|
+
}
|
13
|
+
payload = payload
|
14
|
+
try:
|
15
|
+
response = requests.post(url, json=payload, headers=headers)
|
16
|
+
response.raise_for_status() # raises HTTPError for bad responses
|
17
|
+
return response.json()
|
18
|
+
except requests.exceptions.RequestException as e:
|
19
|
+
return {"error": str(e)}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ezbilling
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.3.0
|
4
4
|
Summary: A small Python package that says hello.
|
5
5
|
Home-page: https://github.com/Ezbillpay
|
6
6
|
Author: Nithesh
|
7
|
-
Author-email:
|
7
|
+
Author-email: Nithesh <nithish@dreaminfinity.in>
|
8
8
|
License: MIT
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "ezbilling"
|
7
|
-
version = "0.
|
7
|
+
version = "0.3.0"
|
8
8
|
description = "A small Python package that says hello."
|
9
9
|
readme = "README.md"
|
10
10
|
requires-python = ">=3.7"
|
11
11
|
license = { text = "MIT" }
|
12
12
|
authors = [
|
13
|
-
{ name = "
|
13
|
+
{ name = "Nithesh", email = "nithish@dreaminfinity.in" }
|
14
14
|
]
|
15
15
|
classifiers = [
|
16
16
|
"Programming Language :: Python :: 3",
|
@@ -10,10 +10,14 @@ setup(
|
|
10
10
|
long_description_content_type="text/markdown",
|
11
11
|
url="https://github.com/Ezbillpay",
|
12
12
|
packages=find_packages(),
|
13
|
+
install_requires=[
|
14
|
+
'requests' # This ensures requests is installed
|
15
|
+
],
|
13
16
|
classifiers=[
|
14
17
|
"Programming Language :: Python :: 3",
|
15
18
|
"License :: OSI Approved :: MIT License",
|
16
19
|
"Operating System :: OS Independent",
|
17
20
|
],
|
21
|
+
dependencies = ["requests>=2.25.1"],
|
18
22
|
python_requires=">=3.7",
|
19
23
|
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|