medusajs / medusa

The world's most flexible commerce platform.
https://medusajs.com
MIT License
26.27k stars 2.67k forks source link

[Bug]: No way to define custom Tax Provider #10351

Closed ricardolopesdev closed 4 days ago

ricardolopesdev commented 5 days ago

Package.json file

{
  "name": "medusa-starter-default",
  "version": "0.0.1",
  "description": "A starter for Medusa projects.",
  "author": "Medusa (https://medusajs.com)",
  "license": "MIT",
  "keywords": [
    "sqlite",
    "postgres",
    "typescript",
    "ecommerce",
    "headless",
    "medusa"
  ],
  "scripts": {
    "build": "medusa build",
    "seed": "medusa exec ./src/scripts/seed.ts",
    "start": "medusa start",
    "dev": "medusa develop",
    "test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
    "test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit",
    "test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit"
  },
  "dependencies": {
    "@medusajs/admin-sdk": "^2.0.7",
    "@medusajs/cli": "^2.0.7",
    "@medusajs/framework": "^2.0.7",
    "@medusajs/icons": "^2.0.7",
    "@medusajs/medusa": "^2.0.7",
    "@mikro-orm/core": "5.9.7",
    "@mikro-orm/knex": "5.9.7",
    "@mikro-orm/migrations": "5.9.7",
    "@mikro-orm/postgresql": "5.9.7",
    "@opentelemetry/exporter-zipkin": "^1.27.0",
    "@opentelemetry/instrumentation-pg": "^0.47.1",
    "@opentelemetry/resources": "^1.27.0",
    "@opentelemetry/sdk-node": "^0.54.2",
    "@opentelemetry/sdk-trace-node": "^1.27.0",
    "awilix": "^8.0.1",
    "jsvat-next": "^3.0.4",
    "lodash": "^4.17.21",
    "nodemailer": "^6.9.16",
    "pg": "^8.13.0",
    "validate-vat-ts": "^1.3.0"
  },
  "devDependencies": {
    "@medusajs/test-utils": "^2.0.7",
    "@mikro-orm/cli": "5.9.7",
    "@swc/core": "1.5.7",
    "@swc/jest": "^0.2.36",
    "@types/jest": "^29.5.13",
    "@types/lodash": "^4.17.13",
    "@types/node": "^20.0.0",
    "@types/nodemailer": "^6.4.17",
    "@types/react": "^18.3.2",
    "@types/react-dom": "^18.2.25",
    "jest": "^29.7.0",
    "prop-types": "^15.8.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "ts-node": "^10.9.2",
    "typescript": "^5.6.2",
    "vite": "^5.2.11"
  },
  "engines": {
    "node": ">=20"
  }
}

Node.js version

v22.11.0

Database and its version

PosgreSQL 16.4

Operating system name and version

Ubuntu 22.04

Browser name

No response

What happended?

Custom Tax Provider not registered, when created follow yours tutorial.

Expected behavior

Registered Custom Provider to be used.

Actual behavior

I found the way to register the provider, but think it's not the correct way. I register myself the provider in db, in required tables.

Link to reproduction repo

https://github.com/ricardolopesdev/my-medusa-store.git

olivermrbl commented 4 days ago

@ricardolopesdev, thanks for the report. We currently don't support registering tax providers in the admin dashboard. However, it in on our roadmap, and I'll make sure to give you an update on this issue once it's shipped.

olivermrbl commented 4 days ago

I will close this issue in the meantime, since the issues board is only for bugs. Feel free to open a discussion, if you think that would be helpful.

ricardolopesdev commented 4 days ago

@ricardolopesdev, thanks for the report. We currently don't support registering tax providers in the admin dashboard. However, it in on our roadmap, and I'll make sure to give you an update on this issue once it's shipped.

@olivermrbl What is your prediction for the functionality to be implemented?