Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunServices/3DEnrollment | 3DEnrollment |
---|
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 Borgun3DEnrollmentRequest
Public Overridable Property CardDetails As BorgunPaymentRequestMethod
Public Overridable Property PurchAmount As Integer
Public Overridable Property Exponent As Nullable(Of Integer)
Public Overridable Property Currency As String
Public Overridable Property TermURL As String
Public Overridable Property TransactionDate As Date
Public Overridable Property MD As String
Public Overridable Property Description As String
End Class
Public Partial Class Borgun3DEnrollmentResponse
Public Sub New()
RedirectToACSDAta = New List(Of BorgunMPIEnrollmentACSField)
End Sub
Public Overridable Property ResultStatus As Integer
Public Overridable Property MessageId As String
Public Overridable Property EnrollmentStatus As String
Public Overridable Property MdErrorMessage As String
Public Overridable Property MdStatus As String
Public Overridable Property RedirectToACSForm As String
Public Overridable Property MD As String
Public Overridable Property MpiToken As String
Public Overridable Property RedirectToACSDAta As List(Of BorgunMPIEnrollmentACSField)
End Class
Public Partial Class BorgunMPIEnrollmentACSField
Public Overridable Property Name As String
Public Overridable Property Values As String
End Class
Public Partial Class BorgunPaymentRequestMethod
Public Overridable Property PaymentType As BorgunPaymentTypes
Public Overridable Property PAN As String
Public Overridable Property ExpYear As String
Public Overridable Property ExpMonth As String
Public Overridable Property CVC2 As String
Public Overridable Property Token As String
End Class
Public Enum BorgunPaymentTypes
Unknown = 1
Card = 2
TokenSingle = 3
TokenMulti = 4
End Enum
End Namespace
Namespace TicketUserServices.ServiceModel
Public Partial Class BorgunServices3DEnrollmentRequest
Public Overridable Property Request As Borgun3DEnrollmentRequest
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
End Class
Public Partial Class BorgunServices3DEnrollmentResponse
Public Overridable Property Response As Borgun3DEnrollmentResponse
Public Overridable Property Success As Boolean
Public Overridable Property HttpStatusCode As Integer
Public Overridable Property Message As String
End Class
End Namespace
End Namespace
VB.NET BorgunServices3DEnrollmentRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /borgunServices/3DEnrollment HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
request:
{
cardDetails:
{
paymentType: Unknown,
pan: String,
expYear: String,
expMonth: String,
cvC2: String,
token: String
},
purchAmount: 0,
exponent: 0,
currency: String,
termURL: String,
transactionDate: 0001-01-01,
md: String,
description: String
},
statusCode: 0,
message: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { response: { resultStatus: 0, messageId: String, enrollmentStatus: String, mdErrorMessage: String, mdStatus: String, redirectToACSForm: String, md: String, mpiToken: String, redirectToACSDAta: [ { name: String, values: String } ] }, success: False, httpStatusCode: 0, message: String }