Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

The cancelToken request will be used to cancel active transactions.

URL: https://secure1secure.sandbox3gdirectpay.directpay.onlinecom/API/v6/

Response

The method will return the operation result. 


Variables to send:

Parameter

Data type

Description


 Request

 Text

 cancelToken

Mandatory

CompanyToken

Token

Token you got from 3G to operate this API

Mandatory

TransactionToken

Token

Transaction token as accepted from the createToken.

Mandatory

 


Request example:


Code Block
languagexml
titlerequest example
<?xml version="1.0" encoding="utf-8"?>
<API3G>
  <CompanyToken>68B90B5E-25F6-4146-8AB1-C7A3A0C41A7F</CompanyToken>
  <Request>cancelToken</Request>
  <TransactionToken>EC9E975A-A7A2-4031-8972-BF123CDD9EDD</TransactionToken>
</API3G>

...

Parameter

Data type

Description

Result

3 digits code

A code will be sent with the result of the request

ResultExplanation

Text

Free text of the result

Respond codes:

 


Code

Explanation

000

Token been updated to status cancelled

999

Custom error message

804

Error in XML

950

Request missing transaction level mandatory fields

 


Respond example:


Code Block
languagexml
titleresponse example
<?xml version="1.0" encoding="utf-8"?>
<API3G>
    <Result>000</Result>
    <ResultExplanation>Token been updated to status cancelled</ResultExplanation>
</API3G>

 

...