| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /cardTokens/complete3DSSave |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class Complete3DSCardSaveRequest
{
public String sessionId = null;
public String paRes = null;
public String cRes = null;
public String pan = null;
public String cvc = null;
public RequestSignature signature = null;
public String getSessionId() { return sessionId; }
public Complete3DSCardSaveRequest setSessionId(String value) { this.sessionId = value; return this; }
public String getPaRes() { return paRes; }
public Complete3DSCardSaveRequest setPaRes(String value) { this.paRes = value; return this; }
public String getCRes() { return cRes; }
public Complete3DSCardSaveRequest setCRes(String value) { this.cRes = value; return this; }
public String getPan() { return pan; }
public Complete3DSCardSaveRequest setPan(String value) { this.pan = value; return this; }
public String getCvc() { return cvc; }
public Complete3DSCardSaveRequest setCvc(String value) { this.cvc = value; return this; }
public RequestSignature getSignature() { return signature; }
public Complete3DSCardSaveRequest setSignature(RequestSignature value) { this.signature = value; return this; }
}
public static class RequestSignature
{
public String systemId = null;
public String systemSecret = null;
public String signature = null;
public String getSystemId() { return systemId; }
public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
public String getSystemSecret() { return systemSecret; }
public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
public String getSignature() { return signature; }
public RequestSignature setSignature(String value) { this.signature = value; return this; }
}
public static class Complete3DSCardSaveResult
{
public Integer statusCode = null;
public Boolean success = null;
public String message = null;
public String token = null;
public Integer getStatusCode() { return statusCode; }
public Complete3DSCardSaveResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public Boolean isSuccess() { return success; }
public Complete3DSCardSaveResult setSuccess(Boolean value) { this.success = value; return this; }
public String getMessage() { return message; }
public Complete3DSCardSaveResult setMessage(String value) { this.message = value; return this; }
public String getToken() { return token; }
public Complete3DSCardSaveResult setToken(String value) { this.token = value; return this; }
}
}
Java Complete3DSCardSaveRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cardTokens/complete3DSSave HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<Complete3DSCardSaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<CRes>String</CRes>
<CVC>String</CVC>
<PAN>String</PAN>
<PARes>String</PARes>
<SessionId>String</SessionId>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
</Complete3DSCardSaveRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <Complete3DSCardSaveResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Message>String</Message> <StatusCode>0</StatusCode> <Success>false</Success> <Token>String</Token> </Complete3DSCardSaveResult>