/GmoPayment

Python API Client for GMO Payment Gateway

Primary LanguagePythonMIT LicenseMIT

PyPI version

GmoPayment Python PyPackage

Python API Client for GMO Payment Gateway

Installation

Use the package manager pip to install foobar.

pip install GmoPayment

Usage

Sample calling ExecTran.idPass

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