ezbilling 0.2.0__py3-none-any.whl → 0.3.0__py3-none-any.whl

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.
@@ -1,5 +1,19 @@
1
+ import requests
2
+
1
3
  def hello(name):
2
4
  return f"Hello, {name}!"
3
5
 
4
- def api_call():
5
- return "this function will process and genrate link for you"
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.2.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: Your Name <your.email@example.com>
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,7 @@
1
+ ezbilling/__init__.py,sha256=uFL_8Kz2L1LSaztzSphDQBo9Z0NaGr34xZ1DMZhRi5k,35
2
+ ezbilling/payment_gateway.py,sha256=JDslnad0dpxnCPoDtTIAZ7JkcwvYmJ5QIQ4GsiYMDsU,570
3
+ ezbilling-0.3.0.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ ezbilling-0.3.0.dist-info/METADATA,sha256=TLgAmQr35bhYJQwtgsakZrcXrA1tXcrZ_jzZNzUAfa0,896
5
+ ezbilling-0.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ ezbilling-0.3.0.dist-info/top_level.txt,sha256=RaYsViuz8AOFaypEAu-hv70CctfD6PQ0u6vjzLuMHP4,10
7
+ ezbilling-0.3.0.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- ezbilling/__init__.py,sha256=uFL_8Kz2L1LSaztzSphDQBo9Z0NaGr34xZ1DMZhRi5k,35
2
- ezbilling/payment_gateway.py,sha256=Bq2a-vtoTPC9r7nlQ0X4dmv4f_yzdv8RgwrXApExarM,127
3
- ezbilling-0.2.0.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- ezbilling-0.2.0.dist-info/METADATA,sha256=ABRhhdVU0gWF09vQZHj1BpQ7C5SsvbCVKllHjrYw5eo,896
5
- ezbilling-0.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- ezbilling-0.2.0.dist-info/top_level.txt,sha256=RaYsViuz8AOFaypEAu-hv70CctfD6PQ0u6vjzLuMHP4,10
7
- ezbilling-0.2.0.dist-info/RECORD,,