eWay Gateway¶
The eWay gateway implements the eWay Hosted Payment API.
Note
Since the eWay payment gateway uses SOAP, the API has been implemented using the suds SOAP library for python. You’ll require it to be able to use this gateway.
Usage¶
Add the following attributes to your settings.py:
MERCHANT_TEST_MODE = True MERCHANT_SETTINGS = { "eway": { "CUSTOMER_ID": "???", "USERNAME": "???", "PASSWORD": "???", } }
Use the gateway instance:
>>> g1 = get_gateway("eway") >>> >>> cc = CreditCard(first_name= "Test", ... last_name = "User", ... month=10, year=2011, ... number="4222222222222", ... verification_value="100") >>> >>> response1 = g1.purchase(100, cc, options = {...}) >>> response1 {"status": "SUCCESS", "response": <instance>}