TicketUserServices

<back to all web services

PayTopupWith3DSecureRequest

The following routes are available for this service:
POST/transferTicket/payTopupWith3DSecureCharge the customer the topup diff via Borgun 3DS and complete the topup
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class PayTopupWith3DSecureRequest
    {
        public String sessionToken = null;
        public String borgunCardToken = null;
        public String borgunMpiToken = null;
        public Integer amountMinor = null;
        public String currency = null;
        public String paymentPhoneNumber = null;
        
        public String getSessionToken() { return sessionToken; }
        public PayTopupWith3DSecureRequest setSessionToken(String value) { this.sessionToken = value; return this; }
        public String getBorgunCardToken() { return borgunCardToken; }
        public PayTopupWith3DSecureRequest setBorgunCardToken(String value) { this.borgunCardToken = value; return this; }
        public String getBorgunMpiToken() { return borgunMpiToken; }
        public PayTopupWith3DSecureRequest setBorgunMpiToken(String value) { this.borgunMpiToken = value; return this; }
        public Integer getAmountMinor() { return amountMinor; }
        public PayTopupWith3DSecureRequest setAmountMinor(Integer value) { this.amountMinor = value; return this; }
        public String getCurrency() { return currency; }
        public PayTopupWith3DSecureRequest setCurrency(String value) { this.currency = value; return this; }
        public String getPaymentPhoneNumber() { return paymentPhoneNumber; }
        public PayTopupWith3DSecureRequest setPaymentPhoneNumber(String value) { this.paymentPhoneNumber = value; return this; }
    }

    public static class PayTopupWith3DSecureResult
    {
        public Boolean ok = null;
        public Integer statusCode = null;
        public String code = null;
        public String message = null;
        public Integer transferLogId = null;
        public String status = null;
        public String newTicketTokenId = null;
        public String paymentReference = null;
        public String authCode = null;
        public String lastFourDigits = null;
        public BigDecimal amountIsk = null;
        
        public Boolean isOk() { return ok; }
        public PayTopupWith3DSecureResult setOk(Boolean value) { this.ok = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public PayTopupWith3DSecureResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getCode() { return code; }
        public PayTopupWith3DSecureResult setCode(String value) { this.code = value; return this; }
        public String getMessage() { return message; }
        public PayTopupWith3DSecureResult setMessage(String value) { this.message = value; return this; }
        public Integer getTransferLogId() { return transferLogId; }
        public PayTopupWith3DSecureResult setTransferLogId(Integer value) { this.transferLogId = value; return this; }
        public String getStatus() { return status; }
        public PayTopupWith3DSecureResult setStatus(String value) { this.status = value; return this; }
        public String getNewTicketTokenId() { return newTicketTokenId; }
        public PayTopupWith3DSecureResult setNewTicketTokenId(String value) { this.newTicketTokenId = value; return this; }
        public String getPaymentReference() { return paymentReference; }
        public PayTopupWith3DSecureResult setPaymentReference(String value) { this.paymentReference = value; return this; }
        public String getAuthCode() { return authCode; }
        public PayTopupWith3DSecureResult setAuthCode(String value) { this.authCode = value; return this; }
        public String getLastFourDigits() { return lastFourDigits; }
        public PayTopupWith3DSecureResult setLastFourDigits(String value) { this.lastFourDigits = value; return this; }
        public BigDecimal getAmountIsk() { return amountIsk; }
        public PayTopupWith3DSecureResult setAmountIsk(BigDecimal value) { this.amountIsk = value; return this; }
    }

}

Java PayTopupWith3DSecureRequest DTOs

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

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<PayTopupWith3DSecureRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <AmountMinor>0</AmountMinor>
  <BorgunCardToken>String</BorgunCardToken>
  <BorgunMpiToken>String</BorgunMpiToken>
  <Currency>String</Currency>
  <PaymentPhoneNumber>String</PaymentPhoneNumber>
  <SessionToken>String</SessionToken>
</PayTopupWith3DSecureRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PayTopupWith3DSecureResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <AmountIsk>0</AmountIsk>
  <AuthCode>String</AuthCode>
  <Code>String</Code>
  <LastFourDigits>String</LastFourDigits>
  <Message>String</Message>
  <NewTicketTokenId>String</NewTicketTokenId>
  <Ok>false</Ok>
  <PaymentReference>String</PaymentReference>
  <Status>String</Status>
  <StatusCode>0</StatusCode>
  <TransferLogId>0</TransferLogId>
</PayTopupWith3DSecureResult>