Record credit or debit card payments manually on a sales order in Dynamics 365 Supply Chain Management
Menu item
Action:CreditCardAuthTransArchive
Main table
CreditCardAuthTrans
Setup steps
1 on this page
How this guide was checked
Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Old authorizations lose their token data”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone
1What it is and why
What it is
A clean-up job that exports aged payment tokens from the credit card authorization table (CreditCardAuthTrans) to Azure Blob Storage and then deletes that token data from the table.
What you do here
Use it to manage database storage for credit card authorization tokens; a Prevent uploading into blob storage option deletes the token data permanently instead of archiving it.
Example
For example, BEAT gives refunds up to 180 days after invoicing, so it runs the job monthly with Minimum transaction age 365 days: token data of authorizations older than a year is archived to Azure Blob Storage and the table stops growing.
The page in Dynamics 365. page title tab to open what to set or check
About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
When to run it
When to run it
When the CreditCardAuthTrans table grows large, and only for authorizations older than your linked-refund period.
How often
On a regular schedule chosen to manage database storage; Learn gives no fixed cadence.
Batch settings
Run it as a batch job; the first run over a large backlog can take a long time.
What the output shows
Card token fields (CardTokenRequest and CardTokenResult) removed from old authorization records, archived to Azure Blob Storage unless deletion was chosen. A refund on an archived order must then be a standalone refund.
The age in days an authorization must reach before its token data is archived or deleted; set it longer than your linked-refund period.Microsoft Learn
365
Archive before date
The date that matches the minimum age; authorizations older than it are processed.Microsoft Learn
Prevent uploading into blob storage
When Yes, the token data is deleted permanently instead of archived to Azure Blob Storage.Microsoft Learn
No
Common errors and fixes
Message
What to do
A refund can't be linked to the original card payment
The token of an archived authorization is no longer in the table, so a refund on that order must be a standalone refund. Set Minimum transaction age longer than your refund period before the next run. Microsoft Learn
The first run takes a very long time
On a large backlog the first run processes many records. Run it as a batch job outside business hours, then schedule it regularly. Microsoft Learn
Test checklist
Authorization records older than the Archive before date no longer hold token data.
The archive file is available in document management, unless deletion was chosen.
Newer authorizations still support linked refunds.
Schedule the job as a recurring batch job with Minimum transaction age longer than the linked-refund period and Prevent uploading into blob storage = No.Archiving keeps the tokens in Azure Blob Storage while removing them from the table; deletion can't be undone, and tokens still within the refund period are needed for linked refunds.
Per company: credit card authorization records are kept per legal entity, so the job cleans up those of the current company. Microsoft data model
Can it be undone
Irreversible: Deleted token data can't be recovered, and archived data can't easily be restored.
If you change it later
Exports aged payment tokens from CreditCardAuthTrans to Azure Blob Storage and deletes them from the table, or deletes them permanently when Prevent uploading into blob storage is on. Microsoft Learn
Technical architect
6Technical
Menu item
Action:CreditCardAuthTransArchiveChecked in Dynamics 365
Form
DialogChecked in Dynamics 365
Table
CreditCardAuthTransShown as “Credit card transactions” in Record infoChecked in Dynamics 365
Who can open it
1 security role.
No security role holds the privileges that grant this page, so only the System administrator role, which is not limited by security, can open it. To give it to others, add one of these privileges to a role.
PrivilegeCreditCardAuthTransArchive
RoleSystem administrator-SYSADMIN-
Checked against Microsoft's standard security setup and a working Dynamics 365 system (version 10.0.49): no role holds these privileges
Load order: Archive credit card authorization data has no data entity in Data management, so it can't be loaded from a file or a configuration template. It is a clean-up job. Card tokens aren't migrated; customers' cards are registered again with the payment service in the new environment.Microsoft Learn