| POST | /transferTicket/payTopupWith3DSecure | Charge the customer the topup diff via Borgun 3DS and complete the topup |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class PayTopupWith3DSecureRequest
Public Overridable Property SessionToken As String
Public Overridable Property BorgunCardToken As String
Public Overridable Property BorgunMpiToken As String
Public Overridable Property AmountMinor As Integer
Public Overridable Property Currency As String
Public Overridable Property PaymentPhoneNumber As String
End Class
Public Partial Class PayTopupWith3DSecureResult
Public Overridable Property Ok As Boolean
Public Overridable Property StatusCode As Integer
Public Overridable Property Code As String
Public Overridable Property Message As String
Public Overridable Property TransferLogId As Nullable(Of Integer)
Public Overridable Property Status As String
Public Overridable Property NewTicketTokenId As String
Public Overridable Property PaymentReference As String
Public Overridable Property AuthCode As String
Public Overridable Property LastFourDigits As String
Public Overridable Property AmountIsk As Nullable(Of Decimal)
End Class
End Namespace
End Namespace
VB.NET PayTopupWith3DSecureRequest 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 /transferTicket/payTopupWith3DSecure HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
sessionToken: String,
borgunCardToken: String,
borgunMpiToken: String,
amountMinor: 0,
currency: String,
paymentPhoneNumber: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ok: False,
statusCode: 0,
code: String,
message: String,
transferLogId: 0,
status: String,
newTicketTokenId: String,
paymentReference: String,
authCode: String,
lastFourDigits: String,
amountIsk: 0
}