Files
payments/pkg/client/docs/models/components/v3connectorconfig.md
Maxence MaireauxandGitHub ec4be2de62 feat: add Coinbase Prime connector plugin (#643)
* feat: commit

* feat: Update connectors

* chore: review code

* fix: align Coinbase Prime client with actual API contract

- Remove query string from HMAC signature (match official SDK)
- Use raw API secret bytes instead of base64-decoding
- Change TransferFrom/TransferTo from string to *TransferEndpoint struct
- Map all 35 transaction types to correct payment types (PAYIN/PAYOUT/TRANSFER/OTHER)
- Fix status mapping: TRANSACTION_DONE (not fictional TRANSACTION_COMPLETED)
- Add CANCELLED/REJECTED/EXPIRED to failed statuses
- Use transfer_from/transfer_to endpoints with walletID fallback for account refs

* fix(e2e): use polling outbox check in setupV3PoolAccounts to fix race condition

MustOutbox performs a single instant check which is flaky when plugin
initialization adds latency. Switch to MustEventuallyOutbox (5s polling)
to match setupV2PoolAccounts behavior.

* fix(coinbase): fix HMAC signing, pagination, symbol normalization and observability

- Base64-decode API secret before HMAC computation (was using raw string)
- Include query params in signed message via RequestURI()
- Loop through all pages in GetBalancesForSymbol instead of single page
- Normalize currency symbols to uppercase before lookup
- Add otelhttp transport for OpenTelemetry tracing
- Include ErrorResponse.Message in API error strings
- Use req.PageSize instead of hardcoded PAGE_SIZE in balances
- Capture time.Now() once before balance loop
- Add base64 validation on APISecret config field
- Add format:password and align pageSize default in OpenAPI schema
- Reclassify INTERNAL_DEPOSIT/INTERNAL_WITHDRAWAL as TRANSFER
- Make fetch_balances periodic in workflow

* fix(tests): stabilize outbox assertions and make metrics registry thread-safe

* fix(coinbase): address review feedback for balances and test stability

* fix(testserver): make outbox polling window robust for e2e timing

* fix(coinbase): address PR review feedback on metadata, status mapping, and DefaultAsset

Remove redundant metadata from payments (already in Raw), refine
transaction status mapping to use CANCELLED/EXPIRED/OTHER, remove
symbol from account metadata, and derive wallet symbol from
DefaultAsset instead of metadata/raw fallback in balances.

* fix(coinbase): enumerate all pending statuses and use UNKNOWN as default

Explicitly list all Coinbase pending transaction statuses, map
OTHER_TRANSACTION_STATUS to OTHER, and default to UNKNOWN for
unrecognized statuses (including TRANSACTION_RETRIED).

* feat: Update

* feat: Switch name to Coinbase Prime
2026-02-19 12:08:23 +00:00

2.7 KiB

V3ConnectorConfig

Supported Types

V3AdyenConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigAdyen(components.V3AdyenConfig{/* values here */})

V3AtlarConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigAtlar(components.V3AtlarConfig{/* values here */})

V3BankingcircleConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigBankingcircle(components.V3BankingcircleConfig{/* values here */})

V3CoinbaseprimeConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigCoinbaseprime(components.V3CoinbaseprimeConfig{/* values here */})

V3ColumnConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigColumn(components.V3ColumnConfig{/* values here */})

V3CurrencycloudConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigCurrencycloud(components.V3CurrencycloudConfig{/* values here */})

V3DummypayConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigDummypay(components.V3DummypayConfig{/* values here */})

V3FireblocksConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigFireblocks(components.V3FireblocksConfig{/* values here */})

V3GenericConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigGeneric(components.V3GenericConfig{/* values here */})

V3IncreaseConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigIncrease(components.V3IncreaseConfig{/* values here */})

V3MangopayConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigMangopay(components.V3MangopayConfig{/* values here */})

V3ModulrConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigModulr(components.V3ModulrConfig{/* values here */})

V3MoneycorpConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigMoneycorp(components.V3MoneycorpConfig{/* values here */})

V3PlaidConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigPlaid(components.V3PlaidConfig{/* values here */})

V3PowensConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigPowens(components.V3PowensConfig{/* values here */})

V3QontoConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigQonto(components.V3QontoConfig{/* values here */})

V3StripeConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigStripe(components.V3StripeConfig{/* values here */})

V3TinkConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigTink(components.V3TinkConfig{/* values here */})

V3WiseConfig

v3ConnectorConfig := components.CreateV3ConnectorConfigWise(components.V3WiseConfig{/* values here */})