https://github.com/blueromans/gmopayment
Python API Client for GMO Payment Gateway
https://github.com/blueromans/gmopayment
api api-rest delete get gmo-payment gmopaymentgateway post put pypi pypi-package pypi-source python python3 requests requests-library-python six typing typings
Last synced: 8 months ago
JSON representation
Python API Client for GMO Payment Gateway
- Host: GitHub
- URL: https://github.com/blueromans/gmopayment
- Owner: blueromans
- License: mit
- Created: 2023-02-10T20:43:36.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T01:18:40.000Z (over 2 years ago)
- Last Synced: 2025-02-10T14:16:12.675Z (9 months ago)
- Topics: api, api-rest, delete, get, gmo-payment, gmopaymentgateway, post, put, pypi, pypi-package, pypi-source, python, python3, requests, requests-library-python, six, typing, typings
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pypi.python.org/pypi/GmoPayment)
# GmoPayment Python PyPackage
Python API Client for GMO Payment Gateway
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.
```bash
pip install GmoPayment
```
# Usage
Sample calling ExecTran.idPass
```python
from GmoPayment import Gateway, ResponseError
gmopg = Gateway(timeout=10, production=True)
try:
response = gmopg.tran.execute({'ShopID': 'shop_id', 'ShopPass': 'password', 'OrderID': 'ORDER0000001', 'JobCd': '1234', 'Amount': 1000})
except ResponseError as e:
print(e)
else:
print(response.data)
```
Parameter names conform to payment gateway specifications.
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[MIT](https://choosealicense.com/licenses/mit/)