Updating transaction details

You can update the transaction details of a Secure Fields transaction before submitting.

The following PATCH method can be called after secureFields.init() but before secureFields.submit() to modify transaction details such as amount, currency or properties within the 3D object.

Please refer to the API Reference to get a detailed view of all required and optional fields.

Example

curl --request PATCH \
  --url 'https://api.sandbox.datatrans.com/v1/transactions/secureFields/{{transactionId}}' \
  --header 'Authorization: Basic {{basicAuth}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "amount": 5000,
    "currency": "GBP",
    "3D": { 
            "cardholder": {      
                "email": "[email protected]",
                "cardholderName": "John Doe",
                "mobilePhone": {
                    "cc": "41",
                    "subscriber": "123456789"
                },
                "workPhone": {
                    "cc": "41",
                    "subscriber": "123456789"
                },
                "homePhone": {
                    "cc": "41",
                    "subscriber": "123456789"
                }
           }
     }           
}'