TicketUserServices

<back to all web services

SaveCreditCardWith3DSRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
POST/cardTokens/saveCard3DS
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SaveCreditCardWith3DSRequest
    {
        public String pan = null;
        public String expYear = null;
        public String expMonth = null;
        public String cvc = null;
        public String phoneVerificationNumber = null;
        public String deviceId = null;
        public String termURL = null;
        public RequestSignature signature = null;
        
        public String getPan() { return pan; }
        public SaveCreditCardWith3DSRequest setPan(String value) { this.pan = value; return this; }
        public String getExpYear() { return expYear; }
        public SaveCreditCardWith3DSRequest setExpYear(String value) { this.expYear = value; return this; }
        public String getExpMonth() { return expMonth; }
        public SaveCreditCardWith3DSRequest setExpMonth(String value) { this.expMonth = value; return this; }
        public String getCvc() { return cvc; }
        public SaveCreditCardWith3DSRequest setCvc(String value) { this.cvc = value; return this; }
        public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
        public SaveCreditCardWith3DSRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
        public String getDeviceId() { return deviceId; }
        public SaveCreditCardWith3DSRequest setDeviceId(String value) { this.deviceId = value; return this; }
        public String getTermURL() { return termURL; }
        public SaveCreditCardWith3DSRequest setTermURL(String value) { this.termURL = value; return this; }
        public RequestSignature getSignature() { return signature; }
        public SaveCreditCardWith3DSRequest 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 SaveCreditCardWith3DSResult
    {
        public Integer statusCode = null;
        public Boolean success = null;
        public String message = null;
        public String token = null;
        public Boolean challengeRequired = null;
        public String acsForm = null;
        public String sessionId = null;
        
        public Integer getStatusCode() { return statusCode; }
        public SaveCreditCardWith3DSResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public Boolean isSuccess() { return success; }
        public SaveCreditCardWith3DSResult setSuccess(Boolean value) { this.success = value; return this; }
        public String getMessage() { return message; }
        public SaveCreditCardWith3DSResult setMessage(String value) { this.message = value; return this; }
        public String getToken() { return token; }
        public SaveCreditCardWith3DSResult setToken(String value) { this.token = value; return this; }
        public Boolean isChallengeRequired() { return challengeRequired; }
        public SaveCreditCardWith3DSResult setChallengeRequired(Boolean value) { this.challengeRequired = value; return this; }
        public String getAcsForm() { return acsForm; }
        public SaveCreditCardWith3DSResult setAcsForm(String value) { this.acsForm = value; return this; }
        public String getSessionId() { return sessionId; }
        public SaveCreditCardWith3DSResult setSessionId(String value) { this.sessionId = value; return this; }
    }

}

Java SaveCreditCardWith3DSRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /cardTokens/saveCard3DS HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"pan":"String","expYear":"String","expMonth":"String","cvc":"String","phoneVerificationNumber":"String","deviceId":"String","termURL":"String","signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"statusCode":0,"success":false,"message":"String","token":"String","challengeRequired":false,"acsForm":"String","sessionId":"String"}