Contents

3DS payment bounded context — Iyzico / Moka, transaction list, webhook.

Locations

LayerPath
Domaininternal/domain/payment/
Applicationinternal/application/payment/start withthreeds.go (ThreeDSService)
HTTPinternal/adapters/http/handler/payment_handler.go
GoUIinternal/adapters/goui/controller_settings_payments_audit.go (checkout, transactions)
Persistenceadapters/persistence/postgres/payment_repository.go
Infrastructureinternal/infrastructure/payment/iyzico, .../moka
Wiringwire_user.go (ThreeDSSvc); wire_http.go, wire_goui.go

Application (ThreeDSService)

FileTypical role
threeds.goFacade: BinCheck, Initialize/Complete 3DS, List/Get, webhook/callback
reconcile.goReconcileStale — stuck transactions

HTTP surfaces

Registration: internal/adapters/http/server.go/api/v1/payments/...

MethodPathHandlerPermission (summary)
POST/payments/bin-checkBinCheckpayments:charge
POST/payments/3ds/initializeInitialize3DSpayments:charge
POST/payments/3ds/authComplete3DSpayments:charge
POST/payments/calc-amountCalcPaymentAmountpayments:charge
GET/payments/transactionsListPaymentspayments:list
GET/payments/transactions/:referenceGetPaymentpayments:charge or payments:list
POST/payments/3ds/callbackCallback3DSpublic (provider)
POST/payments/webhook/iyzicoIyzicoWebhookpublic (signature)

Panel surfaces

PathScreenController
/dashboard/payments/checkoutcheckoutcheckout
/dashboard/payments/transactionspaymentslist
/dashboard/payments/transactions/:referencepayment-showshow

Route table: adapters/goui/routes.gopageRoutes().

Related