| POST | /transferTicket/payTopupWith3DSecure | Charge 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 .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
Content-Length: length
{"sessionToken":"String","borgunCardToken":"String","borgunMpiToken":"String","amountMinor":0,"currency":"String","paymentPhoneNumber":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
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}