Pointspay
Payment Process | Integration | ||
---|---|---|---|
Authorization | ✔️ | Payment Page | ✔️ |
Deferred Settlement | ❌ | Split Mode | ❌ |
Refund | ✔️ | Mobile SDK | ❌ |
Cancel | ❌ | ||
Alias | ❌ |
Description
Payment Method provider website 🔗
Web payment flow
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.
Authorization
Is only possible through the web interface.
Cancel
Can not be canceled since it is a direct debit method.
Credit
Request
curl -v -X POST https://api.sandbox.datatrans.com/upp/jsp/XML_processor.jsp \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d @- << EOF
<?xml version="1.0" encoding="UTF-8" ?>
<paymentService version="2">
<body merchantId="1000011011">
<transaction refno="700912">
<request>
<amount>5</amount>
<currency>CHF</currency>
<uppTransactionId>180917154651525573</uppTransactionId>
<transtype>06</transtype>
</request>
</transaction>
</body>
</paymentService>
EOF
Response
<?xml version='1.0' encoding='UTF-8'?>
<paymentService version='2'>
<body merchantId='1100016230' status='accepted'>
<transaction refno='1234987abc' trxStatus='response'>
<request>
<amount>5</amount>
<currency>CHF</currency>
<uppTransactionId>180917154651525573</uppTransactionId>
<transtype>06</transtype>
<reqtype>COA</reqtype>
</request>
<response>
<responseCode>01</responseCode>
<responseMessage>credit succeeded</responseMessage>
<uppTransactionId>180917154651525573</uppTransactionId>
<authorizationCode>430939749</authorizationCode>
<acqAuthorizationCode>092430</acqAuthorizationCode>
</response>
</transaction>
</body>
</paymentService>
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="5">
<body merchantId="1000011011">
<transaction>
<request>
<uppTransactionId>180917154651525573</uppTransactionId>
<reqtype>STX</reqtype>
</request>
</transaction>
</body>
</statusService>
EOF
Response
<?xml version='1.0' encoding='UTF-8'?>
<statusService version='5'>
<body merchantId='1000011011' status='accepted'>
<transaction trxStatus='response'>
<request>
<uppTransactionId>180917154651525573</uppTransactionId>
<reqtype>STX</reqtype>
</request>
<response itemNr='1'>
<responseCode>6</responseCode>
<responseMessage>DOA Cancel</responseMessage>
<refno>705824</refno>
<amount>5</amount>
<currency>CHF</currency>
<authorizationCode>651545574</authorizationCode>
<pmethod>PPA</pmethod>
<uppTransactionId>180917154651525573</uppTransactionId>
<maskedCC>600451xxxxxxxxx0300</maskedCC>
<aliasCC></aliasCC>
<expm></expm>
<expy></expy>
<trxDate>20180917</trxDate>
<trxTime>154651</trxTime>
<trtype>05</trtype>
<settledAmount>5</settledAmount>
</response>
</transaction>
</body>
</statusService>
Updated over 2 years ago