2.1 SA Proxy Service Methods
2.1.1 ValidateCard
This method is used to check if a card pan has been registered.
Request Fields
Field | |||||
Type | Format | Description | |||
CardPAN | E | Alphanumeric | |||
Sample Request
1 2 3 |
<RequestDetails> <CardPan>627629020217176055</CardPan> </RequestDetails> |
Response Fields
Field | ||
Description | ||
ResponseCode | See Appendix 1.0 | |
TokenType | See Appendix 1.1 |
Sample Response
1 2 3 4 5 6 |
<Response> <ResponseCode>90000</ResponseCode> <TokenType>1</TokenType> <PhoneNumber>08012345678</PhoneNumber> <AdditionalInfo>Please enter your token received to continue with your transaction.</ AdditionalInfo> </Response> |
2.1.2.1 VALIDATE CARD REST SAMPLE
REQUEST
POST {YOUR URL}/validatecard/ HTTP/1.1
Content-Length: 70
1 |
<RequestDetails><CardPan>628051111122223333</CardPan></RequestDetails> |
RESPONSE
HTTP/1.1 200 OK
Date: Tue, 23 Oct 2012 20:03:07 GMT
Content-Type: application/xml; charset=utf-8
Content-Length: 101
1 2 3 4 5 |
<Response> <ResponseCode>90000</ResponseCode> <TokenType>1</TokenType> <PhoneNumber>08012345678</PhoneNumber> <AdditionalInfo>Enter your otp</AdditionalInfo></Response> |
2.1.1 AuthenticateOTP
This method is used to validate an OTP supplied by a user.
Request Fields
Field | Type | Format | Description | ||
userid | E | Alphanumeric | |||
otp | E | numeric |
Sample Request
1 2 3 4 |
<RequestDetails> <UserId>uju.adepoju</UserId> <Otp>459235</Otp> </RequestDetails> |
Response Fields
Field | ||
Description | ||
ResponseCode | See Appendix 1.0 |
Sample Response
1 2 3 |
<Response> <ResponseCode>90000</ResponseCode> </Response> |
2.1.1.1 AUTHENTICATE OTP REST SAMPLE
REQUEST
POST {YOUR URL}/authenticateotp/ HTTP/1.1
Content-Length: 78
1 2 3 4 |
<RequestDetails> <UserId>uju.adepoju</UserId> <Otp>459235</Otp> </RequestDetails> |
RESPONSE
HTTP/1.1 200 OK
Date: Tue, 23 Oct 2012 18:06:57 GMT
Content-Type: application/xml; charset=utf-8
Content-Length: 75
1 2 3 4 |
<Response> <ResponseCode>90000</ResponseCode> <ResponseDescription> </Response> |
2.2 Sample SOAP Request