Call the Patch transaction API endpoint after calling secureFields.init()
and before calling secureFields.submit()
.
/v1/transactions/secureFields
callGBP
{"error": {"code": "INVALID_PROPERTY","message": "update at least one property (e.g. amount or currency)"}}
{"error": {"code": "TRANSACTION_NOT_FOUND"}}
curl -L -X PATCH 'https://api.sandbox.datatrans.com/v1/transactions/secureFields/201110094904976728' \-H 'merchantId:password' \-H 'Content-Type: application/json; charset=UTF-8' \--data-raw '{"amount": 5000,"currency": "GBP"}'
204 No content