An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![PyPI version](https://img.shields.io/pypi/v/GmoPayment.svg)](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/)