Skip to content

fix(clients): create a client without the old admin register - #73

Merged
webster-swift merged 2 commits into
dv-net:mainfrom
marcushale7:fix/drop-merchant-register
Dec 4, 2026
Merged

webster-swift merged 2 commits into
dv-net:mainfrom
marcushale7:fix/drop-merchant-register

Conversation

@marcushale7

Copy link
Copy Markdown
Contributor

Summary

  • Creating a processing client no longer calls POST /merchant/register. That endpoint is gone.
  • The client is stored locally and returned with its own key. The admin secret in the response stays empty.
  • The public-IP lookup and the merchant-admin client existed only to fill that request, so they are removed.

Test plan

  • Create a client against a processing build with this change and confirm it returns a client id and client key without calling the old admin
  • Confirm an existing config that still has merchant_admin still starts

The register endpoint is gone, so client creation no longer calls it or waits for the secret it used to return.
Comment thread internal/services/clients/methods.go Outdated
}

var adminSecretKey string
err = pgx.BeginTxFunc(ctx, s.store.PSQLConn(), pgx.TxOptions{}, func(tx pgx.Tx) error {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remov transaction using only on sql query

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the transaction. Create is a single insert now.

The transaction only existed to roll back the register call. One insert does not need it.
@webster-swift
webster-swift merged commit 0c51440 into dv-net:main Dec 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants