mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 17:36:53 +01:00
Correct high-confidence Business Central guidance and samples for upgrade tags, collectible errors, trigger semantics, obsoletion, events, interfaces, API contracts, and test transactions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e05a43e7-6448-4d67-9c73-798523f5d945
25 lines
648 B
AL
25 lines
648 B
AL
codeunit 50320 "Payment Client Good"
|
|
{
|
|
var
|
|
AccessToken: SecretText;
|
|
|
|
// Credential remains SecretText as it flows inward and is stored.
|
|
internal procedure SetAccessToken(NewToken: SecretText)
|
|
begin
|
|
AccessToken := NewToken;
|
|
end;
|
|
|
|
// Public API exposes only non-sensitive data — a masked reference, never the token.
|
|
procedure GetMaskedReference(): Text
|
|
var
|
|
Reference: Text;
|
|
begin
|
|
Reference := LastReference();
|
|
exit('****-' + CopyStr(Reference, StrLen(Reference) - 3));
|
|
end;
|
|
|
|
local procedure LastReference(): Text
|
|
begin
|
|
exit('REF000123456');
|
|
end;
|
|
}
|