Search…
Update (Amount, Currency)
Call the Patch transaction API endpoint after calling secureFields.init() and before calling secureFields.submit().
patch
https://api.sandbox.datatrans.com
/v1/transactions/secureFields/{transactionId}
Transaction

Example

Request
1
curl -L -X PATCH 'https://api.sandbox.datatrans.com/v1/transactions/secureFields/201110094904976728' \
2
-H 'merchantId:password' \
3
-H 'Content-Type: application/json; charset=UTF-8' \
4
--data-raw '{
5
"amount": 5000,
6
"currency": "GBP"
7
}'
Copied!
Copy link