TicketUserServices

<back to all web services

BorgunTest3DSaveCardRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
The following routes are available for this service:
POST/borgunTest3D/SaveCardTest 3D - Save Card Enrollment Step
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Imports BorgunRPGData

Namespace Global

    Namespace BorgunRPGData

        Public Partial Class BorgunMetadata
            Public Overridable Property Payload As String
        End Class

        Public Partial Class BorgunMPIEnrollmentACSField
            Public Overridable Property Name As String
            Public Overridable Property Values As String
        End Class

        Public Partial Class BorgunTokenMultiRequest
            Public Overridable Property PAN As String
            Public Overridable Property ExpMonth As String
            Public Overridable Property ExpYear As String
            Public Overridable Property VerifyCard As BorgunVerifyCardRequest
            Public Overridable Property Metadata As BorgunMetadata
        End Class

        Public Partial Class BorgunVerifyCardRequest
            Public Overridable Property CheckAmount As Integer
            Public Overridable Property Currency As String
            Public Overridable Property CVC As String
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel

        Public Partial Class BorgunTest3DSaveCardRequest
            Public Overridable Property Request As BorgunTokenMultiRequest
            Public Overridable Property PAN As String
            Public Overridable Property ExpMonth As String
            Public Overridable Property ExpYear As String
            Public Overridable Property CVC As String
            Public Overridable Property PhoneVerificationNumber As String
            Public Overridable Property DeviceId As String
            Public Overridable Property TermURL As String
            Public Overridable Property ForcedPath As String
            Public Overridable Property ForcedJSONRequest As String
            Public Overridable Property SkipBorgunCall As Nullable(Of Boolean)
        End Class

        Public Partial Class BorgunTest3DSaveCardResponse
            Public Sub New()
                RedirectToACSData = New List(Of BorgunMPIEnrollmentACSField)
            End Sub

            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
            Public Overridable Property Success As Boolean
            Public Overridable Property ChallengeRequired As Boolean
            Public Overridable Property SessionId As String
            Public Overridable Property RedirectToACSForm As String
            Public Overridable Property RedirectToACSData As List(Of BorgunMPIEnrollmentACSField)
            Public Overridable Property EnrollmentStatus As String
            Public Overridable Property MpiToken As String
            Public Overridable Property ForcedPath As String
            Public Overridable Property ForcedJSONRequest As String
            Public Overridable Property JSONRequest As String
            Public Overridable Property JSONResponse As String
            Public Overridable Property RequestPath As String
            Public Overridable Property RequestSent As String
            Public Overridable Property RequestReceived As String
            Public Overridable Property Token As String
            Public Overridable Property VirtualCardNumber As String
            Public Overridable Property CardAlreadyExists As Boolean
        End Class
    End Namespace
End Namespace

VB.NET BorgunTest3DSaveCardRequest 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 /borgunTest3D/SaveCard HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"request":{"pan":"String","expMonth":"String","expYear":"String","verifyCard":{"checkAmount":0,"currency":"String","cvc":"String"},"metadata":{"payload":"String"}},"pan":"String","expMonth":"String","expYear":"String","cvc":"String","phoneVerificationNumber":"String","deviceId":"String","termURL":"String","forcedPath":"String","forcedJSONRequest":"String","skipBorgunCall":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"statusCode":0,"message":"String","success":false,"challengeRequired":false,"sessionId":"String","redirectToACSForm":"String","redirectToACSData":[{"name":"String","values":"String"}],"enrollmentStatus":"String","mpiToken":"String","forcedPath":"String","forcedJSONRequest":"String","jsonRequest":"String","jsonResponse":"String","requestPath":"String","requestSent":"String","requestReceived":"String","token":"String","virtualCardNumber":"String","cardAlreadyExists":false}