Skip to content

Instantly share code, notes, and snippets.

@gvsrini
Forked from medikoo/tiw-maxcom-api.md
Last active August 29, 2015 14:02
Show Gist options
  • Save gvsrini/9868939b4835f9d63256 to your computer and use it in GitHub Desktop.
Save gvsrini/9868939b4835f9d63256 to your computer and use it in GitHub Desktop.

TIW <-> MaxCom data exchange API

API of MaxCom service

Payment initialization

Request data
Property nameDescriptionValue format
emailEmailValid email of customer, max. 100 characters length
mobileNoMobile numberMobile number of customer with full country code dialling digits, no symbols, only digits
cityCity (Address)Future. Not required now.
stateState (Address)Future. Not required now.
countryCountry (Address)Future. Not required now.
postCodePostCode (Address) Future. Not required now.
businessIdThis is a fixed id to identify the business request is originating from. For ex: TIW will have one (and only one) business idMax 10 digits
commissionAmtFuture. Not required now.
customerNameCustomer NameMax 100 characters
ammountAmount to be chargedPositive integer
txnIdTransaction id Business should have a method of generating unique Id for each txn passed from its system. Max 20 characters
The above request is sent to Maxcom service. After payment gateway processing at Maxcom end, Maxcom sends the response back to TIW with following parameters mentioned below

API of TIW service

Payment resolution

Response data
Property nameDescriptionValue format
txnIdTransaction IdMax 20 characters
amountAmountPostive Integer
statusStatusSuccess/Failure/Cancelled
responseCodeResponse Code0-Success, 1 to 100 for different errors
responseMessageResponse MessageMax 200 characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment