The developer.datatrans.com Developer Hub

Welcome to the developer.datatrans.com developer hub. You'll find comprehensive guides and documentation to help you start working with developer.datatrans.com as quickly as possible, as well as support if you get stuck. Let's jump right in!

Powerpay Credit Check

paymentmethod=MFA

paymentmethod=MFA

Payment Process
Integration

Authorization (pre-screening)

:heavy-check-mark+:

Payment Page

:heavy-check-mark+:

Deferred Settlement

:heavy-check-mark+:

Split Mode

:x+:

Refund

:heavy-check-mark+:

Mobile SDK

:x+:

Cancel

:heavy-check-mark+:

Alias

:x+:

Try it

Don't worry you wont be charged

Pay CHF 10.00

Request and response parameter reference

For a more detailed description of the request and response parameters for Powerpay Credit Check please check the API Reference

Web payment flow

 1 
[Not supported by viewer]
Requests credit check
Requests credit check
Merchant Website
Merchant Website
Merchant Server
Merchant Server
Redirects request to Powerpay
Redirects request to Powerpay
Powerpay
Powerpay<br>
Checks data received
[Not supported by viewer]
 2 
[Not supported by viewer]
 4 
[Not supported by viewer]
Validates client and checks credit
Validates client and checks credit
 5 
[Not supported by viewer]
Receives Result 
Receives Result 
5.1
[Not supported by viewer]
 7 
[Not supported by viewer]
Invokes merchant's
POST URL (Webhook)
Invokes merchant's<br>POST URL (Webhook)
Receives Result 
Receives Result 
 8 
[Not supported by viewer]
Redirects customer back to merchant
Redirects customer back to merchant
Customer gets redirected to merchant page
Customer gets redirected to merchant page
 3 
[Not supported by viewer]

Server to Server API calls

After a transactionId or alias was received by completing the payment flow on the web, the following server to server API calls can be used to do other actions.

Pre-screening request

Request

curl -v -X POST https://api.sandbox.datatrans.com/upp/jsp/XML_authorize.jsp \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d @- << EOF
<?xml version="1.0" encoding="UTF-8" ?>
<authorizationService version="4">
  <body merchantId="1000011011">
    <transaction refno="1234987">
      <request>
        <amount>150</amount>
        <currency>CHF</currency>
        <pmethod>MFA</pmethod>
        <sign>30916165706580013</sign>
        <reqtype>SCN</reqtype>
        <uppCustomerDetails>
          <uppCustomerGender>male</uppCustomerGender>
          <uppCustomerFirstName>Good</uppCustomerFirstName>
          <uppCustomerLastName>Customer</uppCustomerLastName>
          <uppCustomerStreet>via streccione 2</uppCustomerStreet>
          <uppCustomerCity>Lugano</uppCustomerCity>
          <uppCustomerZipCode>6900</uppCustomerZipCode>
          <uppCustomerBirthDate>1.1.1980</uppCustomerBirthDate>
          <uppCustomerLanguage>it</uppCustomerLanguage>
          <uppCustomerEmail>example@mfgroup.ch</uppCustomerEmail>
        </uppCustomerDetails>
      </request>
    </transaction>
  </body>
</authorizationService>
EOF

Response

<?xml version='1.0' encoding='UTF-8'?>
<authorizationService version='4'>
  <body merchantId='1000011011' status='accepted'>
    <transaction refno='1234987' trxStatus='response'>
      <request>
        <amount>150</amount>
        <currency>CHF</currency>
        <pmethod>MFA</pmethod>
        <sign>30916165706580013</sign>
        <uppCustomerDetails>
          <uppCustomerGender>male</uppCustomerGender>
          <uppCustomerFirstName>Good</uppCustomerFirstName>
          <uppCustomerLastName>Customer</uppCustomerLastName>
          <uppCustomerStreet>via streccione 2</uppCustomerStreet>
          <uppCustomerCity>Lugano</uppCustomerCity>
          <uppCustomerZipCode>6900</uppCustomerZipCode>
          <uppCustomerBirthDate>1.1.1980</uppCustomerBirthDate>
          <uppCustomerLanguage>it</uppCustomerLanguage>
          <uppCustomerEmail>example@mfgroup.ch</uppCustomerEmail>
        </uppCustomerDetails>
        <cardno/>
        <reqtype>NOA</reqtype>
      </request>
      <response>
        <responseCode>01</responseCode>
        <responseMessage>check successful</responseMessage>
        <uppTransactionId>181029150203341146</uppTransactionId>
        <authorizationCode>203351147</authorizationCode>
        <acqAuthorizationCode>0</acqAuthorizationCode>
        <virtualCardno>6004516000000000300</virtualCardno>
        <mfaAvailableCredit>49900</mfaAvailableCredit>
        <mfaMaximalCredit>150000</mfaMaximalCredit>
        <mfaCreditRefusalReason>None</mfaCreditRefusalReason>
        <mfaResponseCode>OK</mfaResponseCode>
        <mfaReference>6786554762</mfaReference>
      </response>
    </transaction>
  </body>
</authorizationService>

Settlement

Operation not available

Credit

Operation not available

Cancel

Operation not available

Status

Request

curl -v -X POST https://api.sandbox.datatrans.com/upp/jsp/XML_status.jsp \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d @- << EOF
<?xml version="1.0" encoding="UTF-8" ?>
<statusService version="3">
  <body merchantId="1000011011">
    <transaction>
      <request>
        <uppTransactionId>181029150203341146</uppTransactionId>
        <reqtype>STX</reqtype>
      </request>
    </transaction>
  </body>
</statusService>
EOF

Response

<?xml version='1.0' encoding='UTF-8'?>
<statusService version='3'>
  <body merchantId='1000011011' status='accepted'>
    <transaction trxStatus='response'>
      <request>
        <uppTransactionId>181029150203341146</uppTransactionId>
        <reqtype>STX</reqtype>
      </request>
      <response itemNr='1'>
        <responseCode>11</responseCode>
        <responseMessage>Trx authentified</responseMessage>
        <refno>1234987</refno>
        <amount>150</amount>
        <currency>CHF</currency>
        <authorizationCode>203351147</authorizationCode>
        <pmethod>MFA</pmethod>
        <uppTransactionId>181029150203341146</uppTransactionId>
        <maskedCC>600451xxxxxxxxx0300</maskedCC>
        <aliasCC></aliasCC>
        <expm></expm>
        <expy></expy>
        <trxDate>20181029</trxDate>
        <trxTime>150203</trxTime>
        <trtype>05</trtype>
      </response>
    </transaction>
  </body>
</statusService>

Powerpay Credit Check


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.