Python API Client for GMO Payment Gateway
Use the package manager pip to install foobar.
pip install GmoPayment
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.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.