Using the Alias

Merchant Id :
Amount : (= 10.00)
Currency :
Reference number : (refno)
Payment method
CC alias :
Expiry :   (MM/YY)
Sign :

Description

After receiving the aliasCC parameter with one of the methods mentioned in Creating an Alias the merchant can either use the payment page or a server to server request to start an Alias transaction. For credit card payment methods the expm and expy parameters must be submitted in order to offer simple or even "one-click" checkout to the customer.

Using the payment page

When using the payment page all the possible input fields are getting prefilled.

Alias payment Visa (or click the 'send' button above)

In the example above the CVV code for the payment method (VIS) is mandatory. The payment page is getting pre-filled with the masked creditcard number and the expiry date only.

If no additional information is needed the transaction automatically succeeds.

Alias payment PayPal

Server to server request - (One-Click Checkout)

If they payment method is of type credit card (VIS, ECA, AMX, DIN, DIS, JCB) this method is only available if the CVV code and 3D process for the particular payment method are optional. Please contact us for further information.

curl https://api.sandbox.datatrans.com/upp/jsp/XML_authorize.jsp \
  -H "Content-Type: application/xml" \
  -d "@request.xml"

Where the payload (request.xml) could have the following content for a credit card payment method:

<?xml version="1.0" encoding="UTF-8" ?>
<authorizationService version="4">
  <body merchantId="1000011011">
    <transaction refno="699178">
      <request>
        <amount>1000</amount>
        <currency>CHF</currency>
        <aliasCC>70323122544331174</aliasCC>
        <expm>12</expm>
        <expy>18</expy>
        <sign>30916165706580013</sign>
      </request>
    </transaction>
  </body>
</authorizationService>

If the payment method is not a credit card (PAP, PFC, ESY or ELV) the parameters expm and expy are not needed anymore. But please make sure to submit the pmethod parameter. For example:

<?xml version="1.0" encoding="UTF-8" ?>
<authorizationService version="3">
  <body merchantId="1000011011">
    <transaction refno="699178">
      <request>
        <amount>1000</amount>
        <currency>CHF</currency>
        <aliasCC>B-74T26709GN402081M</aliasCC>
        <pmethod>PAP</pmethod>
        <sign>30916165706580013</sign>
      </request>
    </transaction>
  </body>
</authorizationService>