Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/Enrollment | Test 3D |
---|
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 BorgunTest3DEnrollmentRequest
Public Overridable Property Request As Borgun3DEnrollmentRequest
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 BorgunTest3DEnrollmentResponse
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
Public Overridable Property Response As Borgun3DEnrollmentResponse
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
End Class
End Namespace
End Namespace
VB.NET BorgunTest3DEnrollmentRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /borgunTest3D/Enrollment HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/json
Content-Type: application/json
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-01T00:00:00.0000000","md":"String","description":"String"},"forcedPath":"String","forcedJSONRequest":"String","skipBorgunCall":false}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"statusCode":0,"message":"String","response":{"resultStatus":0,"messageId":"String","enrollmentStatus":"String","mdErrorMessage":"String","mdStatus":"String","redirectToACSForm":"String","md":"String","mpiToken":"String","redirectToACSDAta":[{"name":"String","values":"String"}]},"forcedPath":"String","forcedJSONRequest":"String","jsonRequest":"String","jsonResponse":"String","requestPath":"String","requestSent":"String","requestReceived":"String"}