Skip to content

Refactor token management in MerchantRuntime#320

Merged
StuartFerguson merged 3 commits intomasterfrom
bug/#319_deposit_token_issue
Feb 28, 2026
Merged

Refactor token management in MerchantRuntime#320
StuartFerguson merged 3 commits intomasterfrom
bug/#319_deposit_token_issue

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Simplify service token handling by storing and managing the token internally within MerchantRuntime. Update GetToken to refresh and set the token as needed, returning a simple Result. Refactor all usages to use the internal token, ensuring consistent and streamlined token usage across startup, main loop, sale, and reconciliation cycles. Also, clarify variable types and update using directives.

closes #319

Simplify service token handling by storing and managing the token internally within MerchantRuntime. Update GetToken to refresh and set the token as needed, returning a simple Result. Refactor all usages to use the internal token, ensuring consistent and streamlined token usage across startup, main loop, sale, and reconciliation cycles. Also, clarify variable types and update using directives.
@StuartFerguson StuartFerguson added the bug Bugs and error-prone code label Feb 28, 2026
@StuartFerguson StuartFerguson merged commit 741711d into master Feb 28, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugs and error-prone code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MerchantPos - failed making deposits

1 participant