FastCheckoutService


Click here for a complete list of operations.

StartHostedPaymentProcess

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
MerchantKey:
APIpassword:
ProcessType:
ViewType:
DesignType:
Email:
CustomerID:
Phone:
UseOneClickPayment:
CustomerIsLoggedIn:
UseIVRForCardEntry:
TransactionId:
TotalAmount:
BasketContent:
UseLoyaltyPoints:
Use3DSecure:
RequestOTP:
RequestCVV:
UseInstallment:
UseCustomInstallments:
InstallmentRateTable:
ReturnURL:
ClientIP:
ClientUserAgent:
ExtraParam:
CustomerName:
POSConfiguration:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /checkout/v7/FastCheckoutService.asmx HTTP/1.1
Host: test.mobilexpress.com.tr
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/StartHostedPaymentProcess"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <StartHostedPaymentProcess xmlns="http://tempuri.org/">
      <MerchantKey>string</MerchantKey>
      <APIpassword>string</APIpassword>
      <ProcessType>PGWithLogin or HostedPage or HostedPrePayment</ProcessType>
      <ViewType>Full or Medium or Compact</ViewType>
      <DesignType>int</DesignType>
      <Email>string</Email>
      <CustomerID>string</CustomerID>
      <Phone>string</Phone>
      <UseOneClickPayment>boolean</UseOneClickPayment>
      <CustomerIsLoggedIn>boolean</CustomerIsLoggedIn>
      <UseIVRForCardEntry>boolean</UseIVRForCardEntry>
      <TransactionId>string</TransactionId>
      <TotalAmount>decimal</TotalAmount>
      <BasketContent>string</BasketContent>
      <UseLoyaltyPoints>boolean</UseLoyaltyPoints>
      <Use3DSecure>boolean</Use3DSecure>
      <RequestOTP>boolean</RequestOTP>
      <RequestCVV>boolean</RequestCVV>
      <UseInstallment>boolean</UseInstallment>
      <UseCustomInstallments>boolean</UseCustomInstallments>
      <InstallmentRateTable>string</InstallmentRateTable>
      <ReturnURL>string</ReturnURL>
      <ClientIP>string</ClientIP>
      <ClientUserAgent>string</ClientUserAgent>
      <ExtraParam>string</ExtraParam>
      <CustomerName>string</CustomerName>
      <POSConfiguration>string</POSConfiguration>
    </StartHostedPaymentProcess>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <StartHostedPaymentProcessResponse xmlns="http://tempuri.org/">
      <StartHostedPaymentProcessResult>
        <ResultCode>Success or InvalidPhone or InvalidEmail or InvalidCustomerID or InvalidAmount or InvalidReturnURL or InvalidTransactionId or AuthenticationError or ServerError or InvalidParameter</ResultCode>
        <TransactionId>string</TransactionId>
        <MobilexpressTransId>string</MobilexpressTransId>
        <RedirectURL>string</RedirectURL>
      </StartHostedPaymentProcessResult>
    </StartHostedPaymentProcessResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /checkout/v7/FastCheckoutService.asmx HTTP/1.1
Host: test.mobilexpress.com.tr
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <StartHostedPaymentProcess xmlns="http://tempuri.org/">
      <MerchantKey>string</MerchantKey>
      <APIpassword>string</APIpassword>
      <ProcessType>PGWithLogin or HostedPage or HostedPrePayment</ProcessType>
      <ViewType>Full or Medium or Compact</ViewType>
      <DesignType>int</DesignType>
      <Email>string</Email>
      <CustomerID>string</CustomerID>
      <Phone>string</Phone>
      <UseOneClickPayment>boolean</UseOneClickPayment>
      <CustomerIsLoggedIn>boolean</CustomerIsLoggedIn>
      <UseIVRForCardEntry>boolean</UseIVRForCardEntry>
      <TransactionId>string</TransactionId>
      <TotalAmount>decimal</TotalAmount>
      <BasketContent>string</BasketContent>
      <UseLoyaltyPoints>boolean</UseLoyaltyPoints>
      <Use3DSecure>boolean</Use3DSecure>
      <RequestOTP>boolean</RequestOTP>
      <RequestCVV>boolean</RequestCVV>
      <UseInstallment>boolean</UseInstallment>
      <UseCustomInstallments>boolean</UseCustomInstallments>
      <InstallmentRateTable>string</InstallmentRateTable>
      <ReturnURL>string</ReturnURL>
      <ClientIP>string</ClientIP>
      <ClientUserAgent>string</ClientUserAgent>
      <ExtraParam>string</ExtraParam>
      <CustomerName>string</CustomerName>
      <POSConfiguration>string</POSConfiguration>
    </StartHostedPaymentProcess>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <StartHostedPaymentProcessResponse xmlns="http://tempuri.org/">
      <StartHostedPaymentProcessResult>
        <ResultCode>Success or InvalidPhone or InvalidEmail or InvalidCustomerID or InvalidAmount or InvalidReturnURL or InvalidTransactionId or AuthenticationError or ServerError or InvalidParameter</ResultCode>
        <TransactionId>string</TransactionId>
        <MobilexpressTransId>string</MobilexpressTransId>
        <RedirectURL>string</RedirectURL>
      </StartHostedPaymentProcessResult>
    </StartHostedPaymentProcessResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /checkout/v7/FastCheckoutService.asmx/StartHostedPaymentProcess HTTP/1.1
Host: test.mobilexpress.com.tr
Content-Type: application/x-www-form-urlencoded
Content-Length: length

MerchantKey=string&APIpassword=string&ProcessType=string&ViewType=string&DesignType=string&Email=string&CustomerID=string&Phone=string&UseOneClickPayment=string&CustomerIsLoggedIn=string&UseIVRForCardEntry=string&TransactionId=string&TotalAmount=string&BasketContent=string&UseLoyaltyPoints=string&Use3DSecure=string&RequestOTP=string&RequestCVV=string&UseInstallment=string&UseCustomInstallments=string&InstallmentRateTable=string&ReturnURL=string&ClientIP=string&ClientUserAgent=string&ExtraParam=string&CustomerName=string&POSConfiguration=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<FCStartHostedPaymentProcessResult xmlns="http://tempuri.org/">
  <ResultCode>Success or InvalidPhone or InvalidEmail or InvalidCustomerID or InvalidAmount or InvalidReturnURL or InvalidTransactionId or AuthenticationError or ServerError or InvalidParameter</ResultCode>
  <TransactionId>string</TransactionId>
  <MobilexpressTransId>string</MobilexpressTransId>
  <RedirectURL>string</RedirectURL>
</FCStartHostedPaymentProcessResult>