/v1/transactions

Initiate call to show sensitive data in web applications

Changed on
post/v1/transactions/secureFields/show

Request

  • Base URL
    https://api.sandbox.datatrans.com
  • URL
    https://api.sandbox.datatrans.com/v1/transactions/secureFields/show
  • Auth
    HTTP basic

Request body

aliasstring
aliasCVVstring
returnResourcesboolean

If true, JavaScript resources with Subresource Integrity (SRI) information are returned in the response.

Response

transactionId successfully created.

transactionIdstring

The transactionId to be used when calling SecureFields.init(). If no further action happens with the transactionId after initialization, it will be invalidated after 30 minutes.

Example response

{
  "resources": [
    {
      "uri": "https://pay.datatrans.com/upp/payment/js/secure-fields-2.0.0.js",
      "integrity": "sha384-Base64EncodedHashValue"
    }
  ]
}

Changes

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status