Commit c22424b
committed
✨ feat(payment): add Coinbase provider across API and storefront
Changes made in this commit:
- Modified: README.md, docs/payment-customization.md, go.mod, go.sum, internal/app.go, internal/handlers/private/*.go, internal/handlers/public/*.go, internal/middleware/*.go, internal/models/setting.go, internal/queries/*.go, internal/routes/*.go, internal/testutil/testdir.go, pkg/errors/errors.go, pkg/jwtutil/parser.go, pkg/litepay/{example_test.go,helper.go,helper_test.go,provider.go,provider_paypal.go,provider_spectrocoin.go,provider_stripe.go}, pkg/webutil/webutil.go, web/admin/{package.json,bun.lockb,src/lib/components/payment/{Paypal.svelte,Spectrocoin.svelte,Stripe.svelte},src/lib/composables/usePaymentSettings.ts,src/lib/constants/validation.ts,src/lib/types/models.ts,src/routes/settings/payment/+page.svelte}, web/site/{package.json,bun.lockb,src/lib/i18n/locales/{en.json,zh.json},src/lib/types/models.ts,src/lib/utils/payment.ts,src/routes/cart/+page.svelte}
- Added: docs/api.md, internal/handlers/private/{install_test.go,setting_test.go}, internal/handlers/public/{cart_test.go,page_test.go,product_test.go,setting_test.go}, internal/testutil/testdb.go, migrations/20260127120000_coinbase.sql, pkg/litepay/{provider_coinbase.go,provider_coinbase_test.go}, web/admin/src/lib/components/payment/Coinbase.svelte
- Deleted: none
Key changes:
- Add Coinbase as a first-class payment provider in backend litepay layer and settings model
- Add migration and query updates for Coinbase configuration persistence
- Expand private/public handlers and middleware behavior with broader test coverage
- Add admin payment settings UI for Coinbase and update storefront checkout/cart payment mapping
- Refresh API documentation and payment customization docs for the new provider1 parent 1b9db0a commit c22424b
72 files changed
Lines changed: 3573 additions & 786 deletions
File tree
- docs
- internal
- handlers
- private
- public
- middleware
- models
- queries
- routes
- testutil
- migrations
- pkg
- errors
- jwtutil
- litepay
- webutil
- web
- admin
- src
- lib
- components/payment
- composables
- constants
- types
- routes/settings/payment
- site
- src
- lib
- i18n/locales
- types
- utils
- routes/cart
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
329 | 343 | | |
330 | 344 | | |
331 | 345 | | |
| |||
429 | 443 | | |
430 | 444 | | |
431 | 445 | | |
432 | | - | |
| 446 | + | |
| 447 | + | |
433 | 448 | | |
434 | 449 | | |
435 | 450 | | |
| |||
0 commit comments